Function at 0x4058f0
Capabilities:
Parse url
Send file using ftp
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x438712
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push ebx
push ebp
mov ebx, dword [esp + 0x288]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x78]
mov eax, 0x104
mov edi, dword [esi + 4]
mov dword [esp + 0x68], ecx
xor ecx, ecx
push ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x48], ecx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x40], 0x3c
call fcn.00405cb0
test eax, eax
je 0x405b40
mov ebp, dword [esp + 0x294]
mov ecx, esi
push ebp
call fcn.00405cb0
test eax, eax
jne 0x405b40
push eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x180]
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x17c]
push ecx
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4059b6
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
jmp 0x405b7b
push 2
push 0x44844c
lea ecx, [esp + 0x1c]
call fcn.004237f6
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov dword [esp + 0x298], 0
call fcn.004239df
push 0x448444
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x294], 1
push eax
call fcn.004239df
push ecx
mov byte [esp + 0x290], 2
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
push eax
push ecx
call fcn.004239df
mov ecx, edi
call fcn.00407250
lea ecx, [esp + 0x1c]
mov byte [esp + 0x288], 1
call fcn.00423788
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 0
call fcn.00423788
lea ecx, [esp + 0x14]
mov dword [esp + 0x288], 0xffffffff
call fcn.00423788
mov eax, dword [esi + 0x20]
push 0
push 2
push 0x80000000
push 0
lea edx, [esp + 0x88]
push ebp
push edx
push eax
call dword [sym.imp.WININET.dll_FtpGetFileA]
mov ebp, eax
test ebp, ebp
je 0x405b0c
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x448424
call fcn.004237f6
mov ecx, edi
call fcn.00407250
lea ecx, [esp + 0x20]
push 1
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
mov ecx, esi
call fcn.00405520
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x294]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x294]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], eax
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405b44
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x44840c
call fcn.004237f6
mov ecx, edi
call fcn.00407250
push 0x448400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00405e30
xor eax, eax
jmp 0x405c92
mov ebp, dword [esp + 0x20]
push ebx
mov ecx, esi
call fcn.00405cb0
test eax, eax
jne 0x405c90
mov eax, dword [esp + 0x294]
mov ecx, esi
push eax
call fcn.00405cb0
test eax, eax
je 0x405c90
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x405b93
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4483e4
call fcn.004237f6
mov ecx, edi
call fcn.00407250
xor eax, eax
jmp 0x405c92
push 2
push 0x44844c
lea ecx, [esp + 0x24]
call fcn.004237f6
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x298], 3
call fcn.004239df
push 0x448444
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x298], 4
call fcn.004239df
push ecx
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
push eax
push ecx
mov byte [esp + 0x29c], 5
call fcn.004239df
mov ecx, edi
call fcn.00407250
lea ecx, [esp + 0x14]
mov byte [esp + 0x288], 4
call fcn.00423788
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 3
call fcn.00423788
lea ecx, [esp + 0x1c]
mov dword [esp + 0x288], 0xffffffff
call fcn.00423788
mov ecx, dword [esi + 0x20]
push 0
lea eax, [esp + 0x7c]
push 2
push eax
push ebx
push ecx
call dword [sym.imp.WININET.dll_FtpPutFileA]
mov ebp, eax
test ebp, ebp
je 0x405c63
push 3
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x448424
call fcn.004237f6
mov ecx, edi
call fcn.00407250
jmp 0x405c90
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x44840c
call fcn.004237f6
mov ecx, edi
call fcn.00407250
push 0x4483d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00405e30
mov eax, ebp
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x27c
ret 8