Function at 0x10f7070
Capabilities:
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], eax
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x10f72a8
push 0x200
push ecx
call fcn.0117f4a4
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, 0xa
jbe 0x10f72b9
push edi
push 0x82
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x64
push 8
push 0x101c18c
push 0x101c024
lea ecx, [ebp - 0xa0]
push 0x3f
push ecx
call fcn.0102c0d0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3550]
add esp, 0x24
test eax, eax
je 0x10f70fb
add eax, 0x70
jmp 0x10f70fd
xor eax, eax
push esi
push 1
push 0
lea edx, [ebp - 0xa0]
push edx
push eax
push edi
call fcn.010ea5a0
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10f72ae
cmp esi, 0xffffffff
je 0x10f72ae
mov edi, dword [edi + 0x2ef14]
test edi, edi
je 0x10f7137
mov eax, dword [edi + 4]
test eax, eax
jne 0x10f713c
mov eax, 0x101c16c
push ebx
push 0
push 0x1bb
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x10f729b
test edi, edi
je 0x10f7164
mov eax, dword [edi + 8]
test eax, eax
jne 0x10f7169
mov eax, 0x101c140
push 0x800100
push 0
push 0
push 0
push eax
push 0x10188d0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10f7291
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3550]
test eax, eax
je 0x10f71a3
push esi
add eax, 0x70
push eax
push ecx
call fcn.010b7a20
push 0x7530
push 0x7530
push 0x7530
push 0x7530
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x14]
push eax
push 0x3f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0xa0000000
push 0xb
push 0x1018888
push esi
call ebx
push 0xa0000000
push 0x2d
push 0x101c098
push esi
call ebx
test edi, edi
je 0x10f71fe
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x10f7203
mov ecx, 0x101c12c
test edi, edi
je 0x10f7210
mov edi, dword [edi + 0xc]
mov eax, edi
test edi, edi
jne 0x10f7215
mov eax, 0x101c114
push 0
push ecx
push eax
push 1
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push 0
push eax
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10f7287
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10f7287
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10f7287
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10f7287
mov edi, dword [ebp + 0x14]
test edi, edi
jbe 0x10f7287
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov byte [ebx + edi - 1], 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10