Function at 0x4244b0
Capabilities:
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x580cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x6531f0]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6531f0]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov dword [esp + 0x864], 2
mov eax, dword [0x66b0b8]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x424548
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x13
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x424530
call esi
jmp 0x424538
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x42453d
mov eax, dword [0x66b0b8]
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [esp + 0x30], eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x2f], bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x2c], ebp
cmp ebp, ebx
je 0x424972
mov eax, dword [esp + 0x87c]
mov ecx, dword [esp + 0x86c]
push ebx
push 0x8000000
push 1
push str.user
push str.user
push eax
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x4248fd
mov edx, dword [esp + 0x870]
push ebx
push 2
push connect
push edx
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov ebp, eax
mov dword [esp + 0x40], ebp
cmp ebp, ebx
je 0x4247ca
cmp byte [esp + 0x878], bl
je 0x4245f6
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
cmp ebx, ebx
ja 0x4245ee
cmp eax, ebx
jbe 0x4245f6
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x874]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x3c], edi
cmp edi, 0xffffffff
je 0x424741
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x5c]
push eax
push ebp
mov dword [esp + 0x2c], ebx
xor esi, esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x424713
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x42470f
cmp byte [esp + 0x878], bl
je 0x4246d6
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ebp, edx
or ebp, eax
je 0x4246d2
add esi, ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
fild qword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebx
fild qword [esp + 0x4c]
mov ecx, esi
mov dword [esp + 0x28], ecx
fchs
faddp st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x28]
test ecx, ecx
jge 0x4246af
fadd dword [0x638dc8]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fdiv dword [esp + 0x20]
fmul qword [0x638dc0]
call fcn.005027f0
push eax
push 0x66b0a8
call edi
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x5c]
push eax
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x424649
mov edi, dword [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov byte [esp + 0x1f], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x2c]
jmp 0x42496b
cmp dword [0x65236c], 3
jl 0x4247af
call esi
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
lea edx, [esp + 0x87c]
push edx
push ecx
call fcn.0040cbb0
mov byte [esp + 0x86c], 3
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x870], 2
call fcn.004060e0
add esp, 8
mov byte [esp + 0x868], 4
mov ecx, dword [eax]
push ecx
push str.Cannot_CreateFile__s____i
push str.Helper::DownloadFTPFile
push 3
call fcn.004fa3c2
add esp, 0x14
mov byte [esp + 0x864], 2
lea ecx, [esp + 0x20]
call fcn.0040ca90
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x2c]
jmp 0x42496b
call esi
cmp dword [0x65236c], 3
mov esi, eax
jl 0x42483a
push esi
push ecx
mov edx, esp
mov dword [esp + 0x28], esp
lea eax, [esp + 0x878]
push eax
push edx
call fcn.0040cbb0
mov byte [esp + 0x86c], 5
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x870], 2
call fcn.004060e0
add esp, 8
mov byte [esp + 0x868], 6
mov edx, dword [eax]
push edx
push str.Cannot_FtpOpenFile__s____i
push str.Helper::DownloadFTPFile
push 3
call fcn.004fa3c2
add esp, 0x14
mov byte [esp + 0x864], 2
lea ecx, [esp + 0x24]
call fcn.0040ca90
cmp esi, 0x2ee3
jne 0x4248f0
push 0x7fe
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x60], ax
call fcn.00501e30
add esp, 0xc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
test eax, eax
je 0x4248e9
cmp dword [0x65236c], 1
jl 0x4248e9
push ecx
mov edx, esp
mov dword [esp + 0x40], esp
push edx
lea ecx, [esp + 0x5c]
call fcn.004026a0
mov byte [esp + 0x868], 7
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x86c], 2
call fcn.004060e0
mov byte [esp + 0x86c], 8
mov ecx, dword [eax]
push ecx
push str.Extended_info____s
push str.Helper::DownloadFTPFile
push 1
call fcn.004fa3c2
add esp, 0x18
mov byte [esp + 0x864], 2
lea ecx, [esp + 0x28]
call fcn.0040ca90
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x2c]
jmp 0x42496b
cmp dword [0x65236c], 3
jl 0x42496b
call esi
push eax
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
lea eax, [esp + 0x874]
push eax
push edx
call fcn.0040cbb0
mov byte [esp + 0x86c], 9
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x870], 2
call fcn.004060e0
add esp, 8
mov byte [esp + 0x868], 0xa
mov edx, dword [eax]
push edx
push str.Cannot_connect_to__s____i
push str.Helper::DownloadFTPFile
push 3
call fcn.004fa3c2
add esp, 0x14
mov byte [esp + 0x864], 2
lea ecx, [esp + 0x2c]
call fcn.0040ca90
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x30], ebx
je 0x42497e
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov byte [esp + 0x864], 1
lea ecx, [esp + 0x86c]
call fcn.00402750
mov byte [esp + 0x864], bl
lea ecx, [esp + 0x870]
call fcn.00402750
mov dword [esp + 0x864], 0xffffffff
lea ecx, [esp + 0x874]
call fcn.00402750
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.004fdb4a
add esp, 0x854
ret