Function at 0x10f3d60
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 0x10f3f98
push 0x200
push ecx
call fcn.01179010
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, 0xa
jbe 0x10f3fa9
push edi
push 0x82
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2e
push 7
push 0x101bfc4
push 0x101be5c
lea ecx, [ebp - 0xa0]
push 0x3f
push ecx
call fcn.0102aaf0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3550]
add esp, 0x24
test eax, eax
je 0x10f3deb
add eax, 0x70
jmp 0x10f3ded
xor eax, eax
push esi
push 1
push 0
lea edx, [ebp - 0xa0]
push edx
push eax
push edi
call fcn.010e74a0
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10f3f9e
cmp esi, 0xffffffff
je 0x10f3f9e
mov edi, dword [edi + 0x2eef8]
test edi, edi
je 0x10f3e27
mov eax, dword [edi + 4]
test eax, eax
jne 0x10f3e2c
mov eax, 0x101bfa4
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 0x10f3f8b
test edi, edi
je 0x10f3e54
mov eax, dword [edi + 8]
test eax, eax
jne 0x10f3e59
mov eax, 0x101bf78
push 0x800100
push 0
push 0
push 0
push eax
push 0x10186fc
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x10f3f81
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3550]
test eax, eax
je 0x10f3e93
push esi
add eax, 0x70
push eax
push ecx
call fcn.010b56c0
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 0x10186b4
push esi
call ebx
push 0xa0000000
push 0x2d
push 0x101bed0
push esi
call ebx
test edi, edi
je 0x10f3eee
mov eax, dword [edi + 0x10]
mov ecx, eax
test eax, eax
jne 0x10f3ef3
mov ecx, 0x101bf64
test edi, edi
je 0x10f3f00
mov edi, dword [edi + 0xc]
mov eax, edi
test edi, edi
jne 0x10f3f05
mov eax, 0x101bf4c
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 0x10f3f77
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10f3f77
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 0x10f3f77
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10f3f77
mov edi, dword [ebp + 0x14]
test edi, edi
jbe 0x10f3f77
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