Function at 0x45b9b0
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
mov eax, dword fs:[0]
push 0x4a894b
push eax
mov eax, 0x186b8
mov dword fs:[0], esp
call fcn.00488a40
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x186d0], 3
call fcn.00457cf0
test eax, eax
je 0x45ba22
lea ecx, [esp + 0x186e0]
mov byte [esp + 0x186d0], 2
call fcn.0049da16
lea ecx, [esp + 0x186e4]
mov byte [esp + 0x186d0], 1
call fcn.0049da16
mov byte [esp + 0x186d0], 0
jmp 0x45bca9
mov eax, dword [esp + 0x186e4]
xor ebx, ebx
push eax
push ebx
push 0x454720
call fcn.004897a2
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x45ba51
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45ba6e
push 0x1388
push esi
call ebp
mov eax, dword [0x4e2460]
cmp eax, ebx
jne 0x45bb29
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00457cf0
test eax, eax
jne 0x45bc7a
mov ecx, dword [0x4e245c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call edi
mov edx, dword [0x4e2458]
push edx
call edi
push ecx
lea eax, [esp + 0x186e4]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0049d78b
mov ecx, dword [esp + 0x14]
push 0x4e245c
push 0x4e2458
call fcn.00455fa0
cmp eax, ebx
je 0x45bc7a
mov ecx, dword [esp + 0x186e4]
push ecx
push ebx
push 0x454720
call fcn.004897a2
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x45baf6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45bb0f
push 0x1388
push esi
call ebp
mov eax, dword [0x4e2460]
cmp eax, ebx
jne 0x45bb25
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x4e245c]
push edx
call edi
mov eax, dword [0x4e2458]
push eax
call edi
jmp 0x45bc7a
mov edi, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00457cf0
test eax, eax
jne 0x45bc7a
mov ecx, dword [esp + 0x186e8]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor ebp, ebp
mov ecx, 0x61a7
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00457cf0
test eax, eax
jne 0x45bc47
mov eax, dword [0x4e2460]
push ebx
lea edx, [esp + 0x24]
push ebx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, ebx
je 0x45bc57
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x4e2460]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x45bc67
cmp eax, 1
mov eax, dword [esp + 0x1c]
jne 0x45bbe8
cmp eax, ebx
je 0x45bcd0
lea edx, [esp + 0x14]
push ebx
push edx
push eax
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x3c]
add ebp, ecx
cmp eax, ebx
jne 0x45bb85
mov edx, dword [esp + 0x18]
mov ecx, ebp
shr ecx, 0xa
shr edx, 0xa
push ecx
push edx
push ecx
lea eax, [esp + 0x186f8]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0049d78b
mov byte [esp + 0x186dc], 3
call fcn.00439c00
mov ecx, eax
call fcn.0045bd60
jmp 0x45bb85
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4e2460]
push ecx
jmp 0x45bc74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4e2460]
push edx
jmp 0x45bc74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e2460]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x186e0]
mov byte [esp + 0x186d0], 2
call fcn.0049da16
lea ecx, [esp + 0x186e4]
mov byte [esp + 0x186d0], 1
call fcn.0049da16
mov byte [esp + 0x186d0], bl
lea ecx, [esp + 0x186e8]
call fcn.0049da16
lea ecx, [esp + 0x186ec]
mov dword [esp + 0x186d0], 0xffffffff
call fcn.0049da16
xor eax, eax
jmp 0x45bd3b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4e2460]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [esp + 0x186e0]
mov byte [esp + 0x186d0], 2
call fcn.0049da16
lea ecx, [esp + 0x186e4]
mov byte [esp + 0x186d0], 1
call fcn.0049da16
lea ecx, [esp + 0x186e8]
mov byte [esp + 0x186d0], bl
call fcn.0049da16
lea ecx, [esp + 0x186ec]
mov dword [esp + 0x186d0], 0xffffffff
call fcn.0049da16
mov eax, 1
mov ecx, dword [esp + 0x186c8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x186c4
ret 0x18