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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060540
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1007a010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov ecx, eax
sub ecx, edi
je 0x10005f51
cmp edi, eax
je 0x10005f51
mov ebx, eax
sub ebx, eax
push ebx
push eax
push edi
call fcn.10046910
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [edx], 0
cmp dword [ebx], 0
je 0x1000605a
mov edx, dword [ebx + 4]
test edx, edx
je 0x1000605a
cmp byte [ebx + 0x13c0], 1
mov ecx, 0x100
jne 0x10005f84
mov ecx, 0x800100
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x10005f8f
mov eax, dword [eax]
push ecx
push 0
push 0
push 0
push eax
push 0x1006b2c8
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp + 0xc], edi
test edi, edi
je 0x1000605a
cmp byte [ebx + 0x13c0], 1
jne 0x10005fcf
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1f
push edi
mov dword [ebp - 0x18], 0x3300
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10006053
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10006053
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 0x14]
push edx
push eax
push 0
push 0x13
sub ecx, eax
push edi
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10006048
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
call fcn.100076f0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
push eax
push 0
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, eax
test ebx, ebx
jne 0x10006088
mov ebx, esi
call fcn.100077a0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], 0x1006b2d0
call fcn.10047200
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x100060b6
mov ebx, esi
call fcn.100077a0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
jmp 0x10006054
xor ebx, ebx
lea ecx, [ebp + 8]
push ecx
push edi
mov dword [ebp + 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10006144
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10006144
mov edx, dword [esi + 4]
sub edx, dword [esi]
lea eax, [ecx + ebx]
cmp eax, edx
jbe 0x100060f5
add eax, 0x400
mov dword [ebp - 4], 2
call fcn.100076f0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push edx
push ecx
add eax, ebx
push eax
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000604c
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], eax
jne 0x1000604c
add ebx, eax
jmp 0x100060b8
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10