Function at 0x10faca0
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 - 0x120]
push edi
push eax
mov dword [ebp - 4], edi
call sub.msvcrt.dll_memset
push 0x4b
push 0xd
push 0x101cde4
push 0x101cdd4
lea ecx, [ebp - 0x120]
push 0x3f
push ecx
call fcn.0102d240
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x35a8]
add esp, 0x24
test eax, eax
je 0x10facf6
add eax, 0x70
jmp 0x10facf8
xor eax, eax
push 1
push 0
lea edx, [ebp - 0x120]
push edx
push eax
push ebx
call fcn.010ee760
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10faf84
cmp esi, 0xffffffff
je 0x10faf84
push 0
cmp dword [ebp + 0x14], edi
je 0x10fad3e
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 0x10fad50
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 0x10faf71
cmp dword [ebp + 0x14], 0
je 0x10fad73
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push 0x800100
push 0
push 0
push 0
push edx
push eax
jmp 0x10fad86
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push pe_nt_image_headers32
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 0x10faf67
mov eax, dword [ebx + 0x35a8]
test eax, eax
je 0x10fadac
push esi
add eax, 0x70
push eax
push ebx
call fcn.010bc480
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 0x10194a4
push esi
call edi
mov eax, dword [ebx + 0x35a8]
xor ebx, ebx
cmp eax, ebx
je 0x10fae11
mov ecx, dword [eax + 0x13c]
shl ecx, 5
mov edx, dword [ecx + 0x119e060]
push edx
push 0x101cdac
push 0x3f
lea eax, [ebp - 0x9c]
push eax
jmp 0x10fae26
mov ecx, dword [0x119e060]
push ecx
push 0x101cdac
push 0x3f
lea edx, [ebp - 0x9c]
push edx
call fcn.0102d240
lea eax, [ebp - 0x9c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10fae37
sub eax, edx
push 0xa0000000
sar eax, 1
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
call edi
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push 0xa0000000
push ecx
push edx
push esi
call edi
push 0xa0000000
push 0x21
push 0x101cd68
push esi
call edi
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x10fae83
push eax
push esi
call fcn.010625d0
mov eax, dword [ebp + 0x28]
push ebx
push eax
push eax
mov eax, dword [ebp + 0x24]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10faf5d
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10faf5d
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xc]
push edx
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 0x10faf5d
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x10faee9
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp + 0xc], ebx
lea esp, [esp]
mov eax, dword [ebp + 0xc]
lea edx, [ebx + 0x1002]
push edx
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.msvcrt.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10faf38
lea ecx, [ebp - 8]
push ecx
push 0x1000
lea edx, [edi + ebx]
push edx
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 4], eax
test eax, eax
je 0x10faf54
add ebx, dword [ebp - 8]
mov byte [edi + ebx], 0
jmp 0x10faf3b
mov eax, dword [ebp - 4]
test eax, eax
je 0x10faf54
cmp dword [ebp - 8], 0
ja 0x10faef0
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x34]
mov dword [eax], ecx
mov dword [edx], ebx
jmp 0x10faf5d
mov eax, dword [ebp + 0xc]
push eax
call fcn.01063ab0
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