Function at 0x661390
Capabilities:
Create directory

Disassembly:
mov eax, 0xaae868
call fcn.00a6fc7c
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov esi, 0xba2730
push 0xba2828
lea eax, [ebp - 0x10]
push esi
push eax
mov byte [ebp - 4], 2
call fcn.0044549c
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push dword [edi + 0x18]
push esi
push eax
call fcn.0044549c
add esp, 0x10
cmp dword [ebp + 0xc], ebx
je 0x6613e8
mov dword [ebp - 0x2c], ebx
jmp 0x661402
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.00429460
mov ecx, edi
call fcn.006615a9
push 1
push 2
push 0x80000000
push dword [ebp - 0x10]
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov esi, eax
cmp esi, ebx
jne 0x661462
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x661432
add eax, 0xfffffff4
push eax
call fcn.00429f5a
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x661446
add eax, 0xfffffff4
push eax
call fcn.00429f5a
pop ecx
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x66145b
add eax, 0xfffffff4
push eax
call fcn.00429f5a
pop ecx
xor eax, eax
jmp 0x661598
push ebx
push esi
call dword [sym.imp.WININET.dll_FtpGetFileSize]
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0xba2754
mov esi, 0xba149c
lea eax, [ebp - 0x28]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.0044549c
add esp, 0xc
push 0xba2804
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0044549c
add esp, 0xc
push 0xba27d4
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0044549c
add esp, 0xc
push 0xba279c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0044549c
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryA]
add esp, 0xc
push ebx
push dword [ebp - 0x28]
call esi
push ebx
push dword [ebp - 0x24]
call esi
push ebx
push dword [ebp - 0x20]
call esi
push ebx
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push dword [edi + 0x18]
mov byte [ebp - 4], 7
push 0xba2730
push eax
call fcn.0044549c
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp dword [ebp - 0x2c], eax
je 0x661534
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_FtpGetFileA]
test eax, eax
jne 0x661534
xor esi, esi
jmp 0x661537
push 1
pop esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004063b5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.004063b5
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004063b5
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004063b5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004063b5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004063b5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004063b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004063b5
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8