Function at 0x461b30
Capabilities:
Create thread
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Terminate thread
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b1c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x2c], 3
call fcn.0045c570
test eax, eax
jne 0x461da8
mov eax, dword [esp + 0x40]
push eax
push 0
push 0x45dde0
call fcn.00492092
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x461b8e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x461bab
push 0x1388
push esi
call ebp
mov eax, dword [0x4eef94]
test eax, eax
jne 0x461c6b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.0045c570
test eax, eax
jne 0x461da8
mov ecx, dword [0x4eef90]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call edi
mov edx, dword [0x4eef8c]
push edx
call edi
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004a688e
push 0x4eef90
push 0x4eef8c
mov ecx, ebx
call fcn.0045d680
test eax, eax
je 0x461da8
mov ecx, dword [esp + 0x40]
push ecx
push 0
push 0x45dde0
call fcn.00492092
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x461c3e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x4eef90]
push edx
call edi
mov eax, dword [0x4eef8c]
push eax
jmp 0x461da6
push 0x1388
push esi
call ebp
mov eax, dword [0x4eef94]
test eax, eax
jne 0x461c71
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x4eef90]
push edx
call edi
mov eax, dword [0x4eef8c]
push eax
jmp 0x461da6
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
push eax
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.0045c570
test eax, eax
jne 0x461da8
mov ecx, dword [esp + 0x44]
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
mov ebp, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov ecx, ebx
call fcn.0045c570
test eax, eax
jne 0x461d79
push eax
push eax
mov eax, dword [0x4eef94]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x461d88
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x50]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x4eef94]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x461d98
cmp eax, 1
mov eax, dword [esp + 0x14]
jne 0x461d15
test eax, eax
je 0x461de7
lea edx, [esp + 0x18]
push 0
push edx
push eax
mov eax, dword [ebx + 0x50]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x3c]
add esi, ecx
test eax, eax
jne 0x461cb7
mov edi, dword [esp + 0x48]
call fcn.0043e0f0
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 0
push 0
shr ecx, 0xa
shr edx, 0xa
push ecx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call fcn.004a6b87
mov byte [esp + 0x40], 3
call fcn.0040c220
mov ecx, eax
call fcn.00460b50
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x461cb7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4eef94]
push eax
jmp 0x461da6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4eef94]
push ecx
jmp 0x461da6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4eef94]
push edx
call edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 2
call fcn.004a6b19
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 1
call fcn.004a6b19
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], 0
call fcn.004a6b19
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a6b19
xor eax, eax
jmp 0x461e36
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4eef94]
push eax
call edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 2
call fcn.004a6b19
lea ecx, [esp + 0x40]
mov byte [esp + 0x2c], 1
call fcn.004a6b19
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], 0
call fcn.004a6b19
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004a6b19
mov eax, 1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x18