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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
xor edi, edi
push 0x82
lea eax, [ebp - 0x9c]
push edi
push eax
mov dword [ebp - 4], edi
call sub.msvcrt.dll_memset
push 0x2e
push 7
push 0x101be6c
push 0x101be5c
lea ecx, [ebp - 0x9c]
push 0x3f
push ecx
call fcn.0102aaf0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3550]
add esp, 0x24
test eax, eax
je 0x10f36a6
add eax, 0x70
jmp 0x10f36a8
xor eax, eax
push 1
push 0
lea edx, [ebp - 0x9c]
push edx
push eax
push ebx
call fcn.010e74a0
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10f3924
cmp esi, 0xffffffff
je 0x10f3924
push 0
cmp dword [ebp + 0x14], edi
je 0x10f36ee
mov eax, dword [ebp + 0xc]
push 0x1bb
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp + 8], edi
jmp 0x10f3700
mov ecx, dword [ebp + 0xc]
push 0x50
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 8], eax
mov edi, eax
test edi, edi
je 0x10f3911
cmp dword [ebp + 0x14], 0
je 0x10f3723
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push 0x800100
push 0
push 0
push 0
push edx
push eax
jmp 0x10f3736
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push 0x100
push 0
push 0
push 0
push ecx
push edx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10f3907
mov eax, dword [ebx + 0x3550]
test eax, eax
je 0x10f375c
push esi
add eax, 0x70
push eax
push ebx
call fcn.010b56c0
mov eax, dword [ebp + 0x3c]
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x3f
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0xa0000000
push 0xb
push 0x10186b4
push esi
call edi
mov ecx, dword [ebx + 0x3550]
mov edx, dword [ecx + 0x13c]
shl edx, 5
mov eax, dword [edx + 0x117fac0]
push eax
push 0x101be34
lea ecx, [ebp - 0x120]
push 0x3f
push ecx
call fcn.0102aaf0
lea eax, [ebp - 0x120]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10f37d0
sub eax, edx
push 0xa0000000
sar eax, 1
push eax
lea edx, [ebp - 0x120]
push edx
push esi
call edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push 0xa0000000
push eax
push ecx
push esi
call edi
push 0xa0000000
push 0x21
push 0x101bdf0
push esi
call edi
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
cmp eax, ebx
je 0x10f381e
push eax
push esi
call fcn.0105f170
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
push eax
push eax
push edx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10f38fd
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10f38fd
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0x20000013
push esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10f38fd
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x10f3884
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [ebp + 0xc], ebx
jmp 0x10f3890
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x1002]
push eax
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.msvcrt.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10f38d8
lea edx, [ebp - 8]
push edx
push 0x1000
lea eax, [edi + ebx]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 4], eax
test eax, eax
je 0x10f38f4
add ebx, dword [ebp - 8]
mov byte [edi + ebx], 0
jmp 0x10f38db
mov eax, dword [ebp - 4]
test eax, eax
je 0x10f38f4
cmp dword [ebp - 8], 0
ja 0x10f3890
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x34]
mov dword [ecx], edx
mov dword [eax], ebx
jmp 0x10f38fd
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0105ea50
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38