Function at 0x40efd0
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
push 0xffffffffffffffff
push 0x5277a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov ebx, 4
push ebx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x60], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push ebp
mov dword [esp + 0x30], 0x7d0
call esi
push ebx
lea ecx, [esp + 0x24]
push ecx
push 3
push ebp
mov dword [esp + 0x30], 3
call esi
cmp dword [edi + 0x18], 8
jb 0x40f053
mov edi, dword [edi + 4]
jmp 0x40f055
add edi, ebx
push 0
push 0x400000
push 0xffffffffffffffff
push 0
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
mov byte [esp + 0x58], 1
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [esp + 0x20], ebx
je 0x40f095
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x20000013
push ebp
call esi
cmp dword [esp + 0x24], 0xc8
je 0x40f0cd
test ebp, ebp
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40f0ac
push ebp
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f0b7
push eax
call esi
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
test ebp, ebp
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ebx
je 0x40f103
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000005
push ebp
call esi
test eax, eax
setne al
test al, al
jne 0x40f1bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x40f09f
mov eax, 0xa00000
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x60]
lea edi, [eax + 1]
mov esi, ebx
call fcn.00403d20
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov ecx, dword [esp + 0x18]
fst qword [esp + 0x3c]
mov edx, dword [ebx + 8]
fstp qword [esp + 0x44]
add ecx, 1
push ecx
push esi
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.004ec1b0
mov eax, dword [esp + 0x24]
add esp, 0xc
xor edi, edi
test eax, eax
jbe 0x40f1de
cmp byte [esp + 0x17], 0
mov edx, 0x1000
jne 0x40f185
sub eax, esi
cmp eax, edx
jae 0x40f185
mov edx, eax
mov eax, dword [ebx + 8]
add esi, eax
push esi
lea esi, [esp + 0x30]
lea eax, [esp + 0x2c]
call fcn.00445430
test eax, eax
jne 0x40f1b1
cmp byte [esp + 0x17], al
jne 0x40f1d6
push 0xa
call sub.KERNEL32.dll_Sleep
add edi, 1
cmp edi, 3
ja 0x40f1d6
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x40f171
jmp 0x40f1de
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40f11e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40f0a9
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
cmp esi, eax
je 0x40f1ee
cmp byte [esp + 0x17], 0
jne 0x40f1f5
jmp 0x40f09f
cmp byte [esp + 0x17], 0
je 0x40f1fd
mov eax, dword [esp + 0x64]
mov dword [eax], esi
jmp 0x40f203
mov ecx, dword [esp + 0x64]
mov dword [ecx], eax
test ebp, ebp
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40f210
push ebp
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40f21b
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret