Function at 0x404ac7
Capabilities:
Check for time delay via gettickcount
Check http status code
Delete file
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x465c43
call fcn.004238cc
sub esp, 0x864
mov eax, dword [0x489e20]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], esp
push dword [edi + 4]
mov esi, ecx
push dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x850], eax
lea eax, [edi + 0x114]
push eax
push str._s___d_th____dbytes
call fcn.00404595
mov eax, dword [ebp - 0x850]
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push 0x402
push dword [eax + 0x8f4]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00444831
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x854], eax
lea eax, [edi + 0x114]
push eax
lea eax, [ebp - 0x854]
push 0x4693e8
push eax
mov dword [ebp - 4], ebx
call fcn.00404955
add esp, 0xc
push ebx
push dword [0x4870cc]
push 0x4870c4
push ebx
push str.HTTP_1.1
push dword [ebp - 0x854]
push ebx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x404b8c
inc ebx
jmp 0x404f41
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404ba3
push 2
pop ebx
jmp 0x404f41
push ebx
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x84c]
push eax
push 0x20000005
push dword [esi + 8]
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x85c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x404bdd
mov eax, dword [ebp - 0x84c]
mov dword [edi + 4], eax
push ebx
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x84c]
push eax
push 0x20000013
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x404c02
push 3
jmp 0x404b9d
cmp dword [ebp - 0x84c], 0xc8
je 0x404c12
push 4
jmp 0x404b9d
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0x83c]
call fcn.004022a3
push 0x4693d8
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 1
call fcn.00404968
lea ecx, [ebp - 0x870]
call fcn.00445415
push ebx
push 0x1021
push dword [ebp - 0x83c]
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 2
call fcn.0044576d
test eax, eax
jne 0x404c67
push 6
pop ebx
jmp 0x404f24
push 0x4693c8
mov ecx, esi
call fcn.00404a09
mov dword [ebp - 0x844], ebx
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x840], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x844]
push eax
mov eax, 0x800
push eax
lea eax, [ebp - 0x834]
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404ccd
lea ecx, [ebp - 0x870]
call fcn.004453b3
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 7
jmp 0x404c61
cmp dword [ebp - 0x844], ebx
je 0x404e77
push dword [ebp - 0x844]
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 3
call fcn.00445163
mov eax, dword [ebp - 0x844]
add dword [ebp - 0x848], eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x838], eax
sub eax, dword [ebp - 0x858]
cmp eax, 0x64
jbe 0x404dd4
mov ecx, dword [ebp - 0x848]
fild dword [ebp - 0x848]
test ecx, ecx
jge 0x404d39
fadd qword [0x4693c0]
mov ecx, dword [ebp - 0x840]
fild dword [ebp - 0x840]
test ecx, ecx
jge 0x404d4f
fadd qword [0x4693c0]
test eax, eax
fsubp st(1)
mov dword [ebp - 0x840], eax
fild dword [ebp - 0x840]
jge 0x404d67
fadd qword [0x4693c0]
fdivp st(1)
push ecx
push ecx
lea eax, [ebp - 0x34]
fstp qword [esp]
push str._4.1fKB_Sec
push eax
call fcn.0042422d
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x860]
call fcn.004022a3
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x860]
push eax
add ecx, 0xa30
mov byte [ebp - 4], 5
call fcn.0040c8b6
mov ecx, dword [ebp - 0x860]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004016dc
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x840], eax
cmp dword [edi + 4], ebx
jne 0x404de0
mov dword [edi + 4], 1
push dword [edi + 4]
push 0x64
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, ebx
mov dword [ebp - 0x838], eax
jge 0x404e01
mov dword [ebp - 0x838], ebx
push 0x64
pop eax
cmp dword [ebp - 0x838], eax
jle 0x404e12
mov dword [ebp - 0x838], eax
mov ecx, dword [ebp - 0x850]
push dword [ebp - 0x838]
add ecx, 0x8d8
call fcn.00401875
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x10c]
imul eax, eax, 0x64
push eax
mov eax, dword [esi + 0x18]
imul eax, eax, 0x64
add eax, dword [ebp - 0x838]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, ebx
jge 0x404e51
xor eax, eax
cmp eax, 0x64
jle 0x404e59
push 0x64
pop eax
mov ecx, dword [ebp - 0x850]
push eax
add ecx, 0x928
call fcn.00401875
cmp dword [ebp - 0x844], ebx
jne 0x404c91
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x870]
mov dword [esi + 8], ebx
call fcn.004453b3
push str.Decompress...
mov ecx, esi
call fcn.00404a09
lea esi, [edi + 0x10]
push esi
push dword [ebp - 0x83c]
call fcn.004044b1
cmp eax, ebx
pop ecx
pop ecx
push dword [ebp - 0x83c]
mov dword [ebp - 0x840], eax
je 0x404ed6
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [ebp - 0x840]
jmp 0x404f24
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0xc], ebx
je 0x404f24
add edi, 8
cmp dword [edi], ebx
je 0x404f24
push ebx
push 0x41
push esi
lea ecx, [ebp - 0x870]
call fcn.0044576d
test eax, eax
jne 0x404f0a
push ebx
push ebx
push esi
call fcn.0044d446
push 9
jmp 0x404c61
push edi
push edi
push edi
push dword [ebp - 0x86c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x870]
call fcn.004453b3
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 1
call fcn.00445454
mov ecx, dword [ebp - 0x83c]
add ecx, 0xfffffff0
call fcn.004016dc
mov ecx, dword [ebp - 0x854]
add ecx, 0xfffffff0
call fcn.004016dc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004239e1
leave
ret 4