Function at 0x407950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427587
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x4334ac]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
cmp byte [esi + 0x11c], 0
mov dword [esp + 0x14], edi
lea eax, [esi + 0xc]
jne 0x4079a8
mov eax, dword [esi + 8]
push 2
add eax, 4
push 0x42b984
push eax
call fcn.004168f4
add esp, 0xc
test eax, eax
je 0x407c35
mov ecx, esi
call fcn.004076d0
test al, al
je 0x407a9d
cmp byte [ebp + 0xc], 0
je 0x407c35
cmp byte [esi + 0x11c], 0
je 0x4079ea
add esi, 0xc
jmp 0x4079ed
mov esi, dword [esi + 8]
lea edi, [esp + 0x18]
call fcn.00408250
lea ebx, [esi + 4]
test ebx, ebx
jne 0x407a02
mov ebx, 0x42b9c8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a07
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00408ea0
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x407a3a
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.00419260
add esp, 0xc
mov ecx, dword [esp + 0x14]
push 0x42b98c
mov dword [esp + 0x27c], 1
call fcn.00404cf0
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.00405a60
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], vtable.t_str.0
jne 0x407a96
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x407a96
push eax
call fcn.00415fb5
add esp, 4
xor al, al
jmp 0x407c37
lea ecx, [esp + 0x13c]
call fcn.00406cc0
lea eax, [esp + 0x13c]
push eax
push esi
mov dword [esp + 0x280], 2
call fcn.00407ff0
test al, al
je 0x407aec
push 0
push edi
lea ecx, [esp + 0x144]
call fcn.00407950
test al, al
jne 0x407aec
lea ecx, [esp + 0x13c]
call fcn.00408470
xor al, al
jmp 0x407c37
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x407afb
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407bf7
cmp byte [esi + 0x11c], al
je 0x407b1c
add esi, 0xc
jmp 0x407b1f
mov esi, dword [esi + 8]
lea edi, [esp + 0x18]
call fcn.00408250
lea ebx, [esi + 4]
test ebx, ebx
jne 0x407b34
mov ebx, 0x42b9c8
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407b40
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00408ea0
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x407b73
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi]
push ecx
add eax, 4
push ebx
push eax
call fcn.00419260
add esp, 0xc
mov ebx, dword [esp + 0x14]
push 0x42b9a8
mov byte [esp + 0x27c], 4
call fcn.004058e0
mov esi, eax
lea eax, [esp + 0x1c]
call fcn.00405a60
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x407bcd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x407bcd
push eax
call fcn.00415fb5
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], esi
jne 0x407a96
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
jmp 0x407a8b
mov eax, esi
call fcn.004081f0
mov eax, esi
call fcn.00408160
cmp byte [esp + 0x258], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x407c35
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x407c35
push eax
call fcn.00415fb5
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00415c3e
mov esp, ebp
pop ebp
ret 8