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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dc248
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x42d4da
mov ecx, dword [eax + 4]
jmp 0x42d4dd
lea ecx, [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edi, edi
push edi
push 0x400000
push 0xffffffffffffffff
push edi
push ecx
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x60], edi
mov esi, 4
cmp ebx, edi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [esp + 0x18], esi
je 0x42d52e
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000013
push ebx
call edi
cmp dword [esp + 0x1c], 0xc8
je 0x42d558
test ebx, ebx
je 0x42d543
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
je 0x42d58a
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20000005
push ebx
call edi
test eax, eax
setne al
test al, al
jne 0x42d5ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x42d67a
mov eax, 0xa00000
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
jmp 0x42d5b7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42d67a
mov esi, dword [ebp + 0x10]
lea edi, [eax + 1]
call fcn.0042dd60
mov edx, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
mov ecx, dword [ebp + 0x10]
fst qword [esp + 0x3c]
mov edx, dword [ecx + 8]
fstp qword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
add eax, 1
push eax
push esi
push edx
call fcn.005be600
mov eax, dword [esp + 0x20]
add esp, 0xc
xor edi, edi
test eax, eax
jbe 0x42d66f
lea ebx, [ebx]
cmp byte [esp + 0x13], 0
mov edx, 0x1000
jne 0x42d624
sub eax, esi
cmp eax, edx
jae 0x42d624
mov edx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
add esi, eax
push esi
lea esi, [esp + 0x30]
lea eax, [esp + 0x24]
call fcn.00464620
cmp eax, 0xffffffff
je 0x42d667
test eax, eax
jne 0x42d659
cmp byte [esp + 0x13], al
jne 0x42d667
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 3
ja 0x42d667
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x42d610
jmp 0x42d66f
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
cmp esi, eax
je 0x42d698
cmp byte [esp + 0x13], 0
jne 0x42d69f
lea esi, [esp + 0x20]
call fcn.004645f0
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
je 0x42d6a6
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
jmp 0x42d6ab
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
test ebx, ebx
je 0x42d6b6
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret