Function at 0x10005c00
Capabilities:
Check for time delay via gettickcount
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009ca98
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
or edi, 0x4000000
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
mov dword [esp + 0x1c], eax
je 0x10005c69
mov eax, dword [esi]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp + 0x18]
push ecx
push 5
push eax
call ebx
mov eax, dword [esi]
push 4
lea edx, [ebp + 0x18]
push edx
push 6
push eax
call ebx
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x10005c77
mov eax, dword [eax + 4]
jmp 0x10005c7a
add eax, 4
mov esi, dword [esi]
push edi
push esi
lea ecx, [esp + 0x2c]
push ecx
mov edi, eax
call fcn.100299e0
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x10005ce7
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x10005ca7
push eax
call esi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10005cb2
push eax
call esi
cmp dword [esp + 0x24], ebx
je 0x10005cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x24]
push edx
mov edi, eax
call esi
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000013
mov edi, 4
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ebx
call esi
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x10005d4a
mov ecx, dword [ebp + 0x1c]
cmp ecx, ebx
je 0x10005d21
mov dword [ecx], eax
cmp eax, ebx
je 0x10005d2c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [esp + 0x24]
call fcn.10029ff0
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ebx
je 0x10005d7f
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x20000005
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x10005e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x10005d2c
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], 0xa00000
cmp dword [ebp + 0x18], ebx
je 0x10005db1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0x18]
ja 0x10005d2c
mov edx, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
add edx, 1
push edx
mov ecx, edi
call fcn.10002cf0
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x34]
call fcn.10005030
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 8]
add eax, 1
push eax
push ebx
push ecx
call fcn.1007aac0
mov esi, dword [esp + 0x4c]
add esp, 0xc
cmp esi, dword [esp + 0x14]
jae 0x10005e9f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10005e0b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005e9f
cmp dword [ebp + 0x18], 0
je 0x10005e20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0x18]
ja 0x10005e9f
cmp byte [esp + 0x13], 0
mov edx, 0x1000
jne 0x10005e38
mov eax, dword [esp + 0x14]
sub eax, esi
cmp eax, edx
jae 0x10005e38
mov edx, eax
mov eax, dword [edi + 8]
add esi, eax
push esi
lea esi, [esp + 0x38]
lea eax, [esp + 0x28]
call fcn.1002a030
cmp eax, 0xffffffff
je 0x10005e9b
test eax, eax
jne 0x10005e69
cmp byte [esp + 0x13], al
jne 0x10005e9b
push 0xa
call sub.KERNEL32.dll_Sleep
add ebx, 1
cmp ebx, 3
ja 0x10005e9b
mov esi, dword [esp + 0x40]
cmp esi, dword [esp + 0x14]
jb 0x10005df3
jmp 0x10005e9f
cmp dword [esp + 0x14], ebx
jne 0x10005d99
mov esi, dword [ebp + 0xc]
push 1
mov ecx, esi
call fcn.10002cf0
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0x10]
mov byte [eax], 0
mov dword [esi + 0xc], ebx
mov dword [ecx], ebx
jmp 0x10005eef
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp esi, eax
je 0x10005ecc
cmp byte [esp + 0x13], 0
jne 0x10005ed3
lea esi, [esp + 0x24]
call fcn.10029ff0
xor al, al
mov ecx, dword [esp + 0x68]
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 0x10005eea
cmp esi, 0xa00000
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
jae 0x10005eef
mov eax, dword [edi + 8]
add eax, esi
mov byte [eax], 0
jmp 0x10005eef
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea esi, [esp + 0x24]
call fcn.10029ff0
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret