Function at 0x10005f10
Capabilities:
Check http status code
Get http content length
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1009ead0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd0]
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x70], 2
mov ecx, dword [esp + 0xb4]
mov eax, 8
cmp dword [esp + 0xc8], eax
jae 0x10005f6d
lea ecx, [esp + 0xb4]
cmp dword [esp + 0xac], eax
mov edx, dword [esp + 0x98]
jae 0x10005f84
lea edx, [esp + 0x98]
cmp dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
jae 0x10005f95
lea eax, [esp + 0x7c]
mov esi, dword [esp + 0xc4]
push esi
push edx
push eax
lea edi, [esp + 0x30]
call fcn.10029b50
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x24]
xor ebx, ebx
cmp eax, ebx
mov esi, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], ebx
je 0x10005feb
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x20000013
push eax
call edi
cmp dword [esp + 0x34], 0xc8
je 0x100060b9
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x10005ffc
push eax
call edi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10006007
push eax
call edi
cmp dword [esp + 0x24], ebx
je 0x10006027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [esp + 0x24]
push eax
call edi
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x90], 8
jb 0x1000603e
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.10079508
add esp, 4
mov edi, 8
cmp dword [esp + 0xac], edi
mov esi, 7
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
jb 0x10006074
mov edx, dword [esp + 0x98]
push edx
call fcn.10079508
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
jb 0x100060a3
mov eax, dword [esp + 0xb4]
push eax
call fcn.10079508
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x17], bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
je 0x100060ed
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000005
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x1000626f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100061d1
mov eax, 0xa00000
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], eax
add eax, 1
push eax
mov ecx, ebp
call fcn.10002cf0
mov edx, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov ecx, dword [ebp + 8]
fst qword [esp + 0x48]
mov dword [esp + 0x38], eax
fstp qword [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
add eax, 1
push eax
push ebx
push ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.1007aac0
mov eax, dword [esp + 0x24]
add esp, 0xc
xor edi, edi
cmp eax, ebx
jbe 0x1000629c
cmp byte [esp + 0x17], bl
mov edx, 0x1000
jne 0x10006183
sub eax, esi
cmp eax, edx
jae 0x10006183
mov edx, eax
mov eax, dword [ebp + 8]
add esi, eax
push esi
lea esi, [esp + 0x3c]
lea eax, [esp + 0x28]
call fcn.1002a030
cmp eax, 0xffffffff
je 0x10006294
cmp eax, ebx
jne 0x100061c0
cmp byte [esp + 0x17], bl
jne 0x10006294
push 0xa
call sub.KERNEL32.dll_Sleep
add edi, 1
cmp edi, 3
ja 0x10006294
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x10006170
jmp 0x1000629c
lea esi, [esp + 0x24]
call fcn.10029ff0
mov edi, 8
cmp dword [esp + 0x90], edi
jb 0x100061f5
mov eax, dword [esp + 0x7c]
push eax
call fcn.10079508
add esp, 4
cmp dword [esp + 0xac], edi
mov esi, 7
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
jb 0x10006226
mov ecx, dword [esp + 0x98]
push ecx
call fcn.10079508
add esp, 4
cmp dword [esp + 0xc8], edi
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
jb 0x100060a3
mov edx, dword [esp + 0xb4]
push edx
call fcn.10079508
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x1000610c
push 1
mov ecx, ebp
call fcn.10002cf0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov byte [eax], bl
mov dword [ebp + 0xc], ebx
mov dword [ecx], ebx
jmp 0x100062fa
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
cmp esi, eax
je 0x100062e6
cmp byte [esp + 0x17], bl
jne 0x100062ec
lea esi, [esp + 0x24]
call fcn.10029ff0
lea ecx, [esp + 0x78]
call fcn.10008190
lea ecx, [esp + 0x94]
call fcn.10008190
lea ecx, [esp + 0xb0]
call fcn.10008190
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp byte [esp + 0x17], bl
je 0x100062f4
mov edx, dword [esp + 0x1c]
mov dword [edx], esi
jmp 0x100062fa
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
lea esi, [esp + 0x24]
call fcn.10029ff0
mov edi, 8
cmp dword [esp + 0x90], edi
jb 0x1000631e
mov edx, dword [esp + 0x7c]
push edx
call fcn.10079508
add esp, 4
cmp dword [esp + 0xac], edi
mov esi, 7
mov word [esp + 0x7c], bx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], esi
jb 0x1000634f
mov eax, dword [esp + 0x98]
push eax
call fcn.10079508
add esp, 4
cmp dword [esp + 0xc8], edi
mov word [esp + 0x98], bx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], esi
jb 0x1000637e
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.10079508
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret