Function at 0x10012460
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x1003e830]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1001247f
cmp dword [ebp + 0xc], 0
jne 0x10012484
jmp 0x10012700
mov eax, dword [0x1003e6ec]
and eax, 0x5000
cmp eax, 0x5000
jne 0x10012700
mov ecx, dword [0x1003e6ec]
and ecx, 0x10000
je 0x100124ac
jmp 0x10012700
mov byte [ebp - 0x808], 0
push 0x3ff
push 0
lea edx, [ebp - 0x807]
push edx
call fcn.1001d590
add esp, 0xc
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.1001d590
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001a520
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0xffffffff
je 0x10012700
mov dword [ebp - 0x814], 0x100df1a0
mov dword [ebp - 0x810], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1000b850
add esp, 4
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x100125ef
mov byte [ebp - 0xc18], 0
push 0x1ff
push 0
lea eax, [ebp - 0xc17]
push eax
call fcn.1001d590
add esp, 0xc
mov byte [ebp - 0xa18], 0
push 0x1ff
push 0
lea ecx, [ebp - 0xa17]
push ecx
call fcn.1001d590
add esp, 0xc
push 0x100df1a0
lea edx, [ebp - 0xc18]
push edx
call fcn.10003f20
add esp, 8
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 0xa18]
push ecx
call fcn.10003f20
add esp, 8
push 0x10037334
lea edx, [ebp - 0xc18]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x100125ef
call fcn.100123f0
push 0x10037348
mov eax, dword [ebp - 0x810]
sub eax, 6
push eax
call fcn.10003f20
add esp, 8
lea ecx, [ebp - 0xc18]
mov dword [ebp - 0x814], ecx
mov edx, dword [ebp - 0x814]
push edx
push str._sLogFTPD
lea eax, [ebp - 0x808]
push eax
call fcn.1001d9ee
add esp, 0xc
push 0
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xa], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x814]
push ecx
push str._sLogFTPD_s
lea edx, [ebp - 0x808]
push edx
call fcn.1001d9ee
add esp, 0x10
push 0
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x814]
push eax
push str._sLogFTPD_s_s
lea ecx, [ebp - 0x808]
push ecx
call fcn.1001d9ee
add esp, 0x14
push 0
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x1013e7b0]
test eax, eax
jne 0x100126e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc20], eax
push 0
push 0
lea ecx, [ebp - 0xc1c]
push ecx
push 0x400
mov edx, dword [ebp - 0xc20]
push edx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0xc1c]
push eax
lea ecx, [ebp - 0x808]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.FTP_CopyFile__s_____s__ErrMsg__s_
push 1
call fcn.1001a870
add esp, 0x14
mov eax, dword [ebp - 0xc1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x818], 0
je 0x10012700
cmp dword [ebp - 0x810], 0
je 0x10012700
call fcn.10012420
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d57b
mov esp, ebp
pop ebp
ret