Function at 0x10fc6d0
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 0x3e
push 0xd
push 0x101d07c
push 0x101d06c
lea ecx, [ebp - 0x120]
push 0x3f
push ecx
call fcn.0102d9e0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x35b0]
add esp, 0x24
test eax, eax
je 0x10fc726
add eax, 0x70
jmp 0x10fc728
xor eax, eax
push 1
push 0
lea edx, [ebp - 0x120]
push edx
push eax
push ebx
call fcn.010efd40
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10fc9b4
cmp esi, 0xffffffff
je 0x10fc9b4
push 0
cmp dword [ebp + 0x14], edi
je 0x10fc76e
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 0x10fc780
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 0x10fc9a1
cmp dword [ebp + 0x14], 0
je 0x10fc7a3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push 0x800100
push 0
push 0
push 0
push edx
push eax
jmp 0x10fc7b6
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 0x10fc997
mov eax, dword [ebx + 0x35b0]
test eax, eax
je 0x10fc7dc
push esi
add eax, 0x70
push eax
push ebx
call fcn.010bd4f0
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 0x1019724
push esi
call edi
mov eax, dword [ebx + 0x35b0]
xor ebx, ebx
cmp eax, ebx
je 0x10fc841
mov ecx, dword [eax + 0x13c]
shl ecx, 5
mov edx, dword [ecx + 0x119fda8]
push edx
push 0x101d044
push 0x3f
lea eax, [ebp - 0x9c]
push eax
jmp 0x10fc856
mov ecx, dword [0x119fda8]
push ecx
push 0x101d044
push 0x3f
lea edx, [ebp - 0x9c]
push edx
call fcn.0102d9e0
lea eax, [ebp - 0x9c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10fc867
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 0x101d000
push esi
call edi
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x10fc8b3
push eax
push esi
call fcn.01062fd0
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 0x10fc98d
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10fc98d
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 0x10fc98d
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x10fc919
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 0x10fc968
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 0x10fc984
add ebx, dword [ebp - 8]
mov byte [edi + ebx], 0
jmp 0x10fc96b
mov eax, dword [ebp - 4]
test eax, eax
je 0x10fc984
cmp dword [ebp - 8], 0
ja 0x10fc920
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x34]
mov dword [eax], ecx
mov dword [edx], ebx
jmp 0x10fc98d
mov eax, dword [ebp + 0xc]
push eax
call fcn.01062870
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