Function at 0x404bc0
Capabilities:
Check for time delay via gettickcount
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Resolve function by parsing pe exports
Send data
Send http request
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x457fbb
mov eax, dword fs:[0]
push eax
mov eax, 0x295c
call fcn.00441430
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x2958], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x2970]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2980]
mov ebp, dword [esp + 0x2984]
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x404c6a
cmp dword [esp + 0x2988], 1
mov dword [esp + 0x24], ebx
jne 0x404c71
push ebp
push edi
call fcn.00404870
push ebx
push 2
push SysReAllocString
mov dword [esp + 0x30], eax
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x404d33
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x10
push str.FTP_Error
push str.FtpOpenFile_Error
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x405240
push ebx
push 0x84400000
push 0x4761ec
push ebx
push str.HTTP_1.0
push edi
push 0x45ed3c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, ebx
jne 0x404cb3
push 0x10
push str.HTTP_Error
push str.HTTP_Open_Error
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x405240
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404ced
call esi
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x10
push str.HTTP_Error
push str.HTTP_Send_Error
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x405240
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x20000005
push edi
mov dword [esp + 0x4c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x404d33
mov eax, edi
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x10
push str.HTTP_Error
push str.HTTP_Query_Info_Error
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x405240
mov edi, 0xf
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x2978], ebx
mov ecx, dword [0x4791c4]
push 0x45ecf4
add ecx, 0x9f4
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404740
mov byte [esp + 0x2984], 1
push ebp
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00404740
add esp, 0x18
mov byte [esp + 0x2978], 2
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404d93
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x7c]
call fcn.00401da0
mov byte [esp + 0x2978], 1
lea ecx, [esp + 0x2c]
call fcn.004032f0
mov byte [esp + 0x2978], bl
lea ecx, [esp + 0x20]
call fcn.004032f0
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x404dda
lea eax, [esp + 0x78]
push 0x45ecf0
push eax
call fcn.00441419
add esp, 8
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x404e29
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x10
push str.DOWNLOAD
push str.Can_t_open_local_file
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x2978], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.00401b20
xor al, al
jmp 0x405240
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov byte [esp + 0x2978], 3
push ebp
lea ecx, [esp + 0x94]
call fcn.00404840
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x5c]
push 0x45ecbc
push eax
call fcn.00404a20
add esp, 0xc
mov byte [esp + 0x2978], 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x9c]
call fcn.00401cc0
mov byte [esp + 0x2978], 3
lea ecx, [esp + 0x58]
call fcn.00401b20
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [0x4791c4]
call fcn.00406ec0
fldz
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x20]
mov edi, eax
cmp eax, ebx
jbe 0x4051b3
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push 0x27ff
lea eax, [esp + 0x174]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x174]
push 1
push eax
call fcn.004412d3
mov ecx, dword [esp + 0x34]
add esi, dword [esp + 0x40]
mov eax, 0x6668f5d3
mul ecx
add esp, 0x10
shr edx, 0xc
push ebx
test edx, edx
jne 0x404f3b
mov ecx, dword [0x4791c4]
mov eax, 0x6668f5d3
mul esi
shr edx, 0xc
imul edx, edx, 0x64
push edx
mov edx, dword [ecx + 0x55c]
push 0x402
push edx
jmp 0x404f56
mov eax, esi
imul eax, eax, 0x64
xor edx, edx
div ecx
push eax
mov eax, dword [0x4791c4]
mov ecx, dword [eax + 0x55c]
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
push ebx
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebx
je 0x404f8c
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
test byte [0x479118], 1
jne 0x404fd0
or dword [0x479118], 1
mov byte [esp + 0x2978], 5
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x404fbc
fadd dword [0x45ecb8]
fmul qword [0x45ecb0]
fstp dword [0x479114]
mov byte [esp + 0x2978], 3
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x404fe8
fadd dword [0x45ecb8]
fmul qword [0x45ecb0]
mov edx, dword [esp + 0x30]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsub dword [0x479114]
fstp dword [esp + 0x14]
fild dword [esp + 0x30]
test edx, edx
jge 0x405012
fadd dword [0x45ecb8]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld1
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jp 0x4051a1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x405043
fadd dword [0x45ecb8]
fmul qword [0x45ecb0]
mov dword [esp + 0x18], edi
fstp dword [0x479114]
fild dword [esp + 0x18]
test edi, edi
jge 0x405061
fadd dword [0x45ecb8]
fsub dword [esp + 0x20]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
mov eax, edi
fldcw word [esp + 0x14]
cmp edi, 0x100000
jbe 0x4050a4
shr eax, 0x14
push eax
push str._d_MB
lea eax, [esp + 0xd4]
push eax
jmp 0x4050b5
shr eax, 0xa
push eax
push 0x45ec9c
lea ecx, [esp + 0xd4]
push ecx
call fcn.004410b5
fld dword [0x45ec98]
fld dword [esp + 0x2c]
add esp, 0xc
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40510a
fmul qword [0x45ec90]
lea edx, [esp + 0xac]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
push eax
push str._d_MB
push edx
fldcw word [esp + 0x20]
jmp 0x405140
fmul qword [0x45ec88]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
push eax
push 0x45ec9c
lea eax, [esp + 0xb4]
fldcw word [esp + 0x1c]
push eax
call fcn.004410b5
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0xf4]
push str.Remaining_Downloads:__s___s_s_
push eax
call fcn.004410b5
add esp, 0xc
lea edx, [esp + 0xf0]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00404b00
mov byte [esp + 0x297c], 6
mov byte [esp + 0x297c], 3
mov ecx, dword [0x4791c4]
call fcn.004070a0
fldz
fstp dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
je 0x4051b7
cmp esi, dword [esp + 0x24]
jb 0x404ec5
jmp 0x4051b7
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push eax
call fcn.00441039
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x45ec69
call fcn.00404b00
mov byte [esp + 0x297c], 7
mov byte [esp + 0x297c], 3
mov ecx, dword [0x4791c4]
call fcn.004070a0
push ebp
cmp esi, dword [esp + 0x28]
jae 0x405211
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x2978], bl
lea ecx, [esp + 0x90]
call fcn.00401b20
jmp 0x404e0e
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [esp + 0x2978], bl
lea ecx, [esp + 0x90]
call fcn.00401b20
mov dword [esp + 0x2978], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.00401b20
mov al, 1
mov ecx, dword [esp + 0x2970]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2958]
xor ecx, esp
call fcn.0044014d
add esp, 0x2968
ret 0xc