Function at 0x10002f60
Capabilities:
Check http status code
Get http content length

Disassembly:
push 0xffffffffffffffff
push 0x1006af28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007d1f8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
cmp dword [eax + 0x18], 0x10
jb 0x10002f96
mov ecx, dword [eax + 4]
jmp 0x10002f99
lea ecx, [eax + 4]
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x400000
push 0xffffffffffffffff
push ebx
push ecx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, ebx
mov dword [esp + 0x58], ebx
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, 4
mov dword [esp + 0x60], esi
je 0x10002fea
push ebx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x20000013
push ebp
call edi
cmp dword [esp + 0x14], 0xc8
je 0x10003015
cmp ebp, ebx
je 0x10002fff
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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
xor bl, bl
test ebp, ebp
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], esi
je 0x10003044
push 0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x6c]
push ecx
push 0x20000005
push ebp
call edi
test eax, eax
setne al
test al, al
jne 0x1000307f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x1000305e
mov eax, 0xa00000
mov bl, 1
mov dword [esp + 0x64], eax
jmp 0x1000308b
test ebp, ebp
je 0x10002fff
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10003142
mov esi, dword [esp + 0x68]
lea edi, [eax + 1]
call fcn.10004890
mov edx, dword [esp + 0x64]
xor esi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov ecx, dword [esp + 0x68]
fst qword [esp + 0x34]
mov edx, dword [ecx + 8]
fstp qword [esp + 0x44]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
add eax, 1
push eax
push esi
push edx
call fcn.10041500
mov eax, dword [esp + 0x70]
add esp, 0xc
xor edi, edi
test eax, eax
jbe 0x1000313a
test bl, bl
mov edx, 0x1000
jne 0x100030f1
sub eax, esi
cmp eax, edx
jae 0x100030f1
mov edx, eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
add esi, eax
push esi
lea esi, [esp + 0x28]
lea eax, [esp + 0x1c]
call fcn.10027990
cmp eax, 0xffffffff
je 0x10003132
test eax, eax
jne 0x10003124
test bl, bl
jne 0x10003132
push 0xa
call sub.KERNEL32.dll_Sleep
add edi, 1
cmp edi, 3
ja 0x10003132
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x64]
cmp esi, eax
jb 0x100030e0
jmp 0x1000313a
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
cmp esi, eax
je 0x10003161
test bl, bl
jne 0x10003165
lea esi, [esp + 0x18]
call fcn.10027850
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 bl, bl
je 0x1000316d
mov ecx, dword [esp + 0x6c]
mov dword [ecx], esi
jmp 0x10003173
mov edx, dword [esp + 0x6c]
mov dword [edx], eax
test ebp, ebp
je 0x1000317e
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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