Function at 0x10033340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x10067bf0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x1003335f
cmp dword [ebp + 0xc], 0
jne 0x10033364
jmp 0x100335e0
mov eax, dword [0x100676a4]
and eax, 0x5000
cmp eax, 0x5000
jne 0x100335e0
mov ecx, dword [0x100676a4]
and ecx, 0x10000
je 0x1003338c
jmp 0x100335e0
mov byte [ebp - 0x808], 0
push 0x3ff
push 0
lea edx, [ebp - 0x807]
push edx
call fcn.1003e4a0
add esp, 0xc
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.1003e4a0
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003b430
add esp, 8
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0xffffffff
je 0x100335e0
mov dword [ebp - 0x814], 0x1011ef18
mov dword [ebp - 0x810], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1000fce0
add esp, 4
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x100334cf
mov byte [ebp - 0xc18], 0
push 0x1ff
push 0
lea eax, [ebp - 0xc17]
push eax
call fcn.1003e4a0
add esp, 0xc
mov byte [ebp - 0xa18], 0
push 0x1ff
push 0
lea ecx, [ebp - 0xa17]
push ecx
call fcn.1003e4a0
add esp, 0xc
push 0x1011ef18
lea edx, [ebp - 0xc18]
push edx
call fcn.10008420
add esp, 8
lea eax, [ebp - 0xc18]
push eax
lea ecx, [ebp - 0xa18]
push ecx
call fcn.10008420
add esp, 8
push 0x1005e733
lea edx, [ebp - 0xc18]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x100334cf
call fcn.100332d0
push 0x1005e73a
mov eax, dword [ebp - 0x810]
sub eax, 6
push eax
call fcn.10008420
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.1003e8fe
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.1003e8fe
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.1003e8fe
add esp, 0x14
push 0
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x1017fb54]
test eax, eax
jne 0x100335c9
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.1003b780
add esp, 0x14
mov eax, dword [ebp - 0xc1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x818], 0
je 0x100335e0
cmp dword [ebp - 0x810], 0
je 0x100335e0
call fcn.10033300
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003e48b
mov esp, ebp
pop ebp
ret