Function at 0x407b30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b6b28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x629688]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x629688]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x407b86
cmp word [ebx], 0
jne 0x407b96
cmp dword [esi + 0x48], 8
lea ebx, [esi + 0x34]
mov byte [esp + 0x12], 1
jb 0x407b96
mov ebx, dword [ebx]
test edx, edx
je 0x407bc5
cmp word [edx], 0
je 0x407bc5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ba5
sub ecx, edi
sar ecx, 1
push ecx
lea edi, [esi + 0x4c]
push edx
mov ecx, edi
call fcn.00408410
jmp 0x407ca0
lea edi, [esi + 0x4c]
mov ecx, edi
call fcn.00415bd0
cmp dword [edi + 0x14], 8
jb 0x407bd9
mov edx, dword [edi]
jmp 0x407bdb
mov edx, edi
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
jne 0x407bfb
xor ecx, ecx
jmp 0x407c15
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c04
sub ecx, dword [esp + 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00408410
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
sete al
cmp dword [esp + 0x34], 8
mov byte [esp + 0x13], al
jb 0x407c5a
push dword [esp + 0x20]
call fcn.0058603b
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x407ca0
cmp dword [edi + 0x14], 8
jb 0x407c68
mov eax, dword [edi]
jmp 0x407c6a
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.00407fb0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0x34], 8
jb 0x407ca0
push dword [esp + 0x20]
call fcn.0058603b
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x407cd8
push ebx
lea ecx, [esp + 0x24]
call fcn.00407fb0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [esp + 0x12], 1
cmp eax, 1
jne 0x407cdd
mov byte [esp + 0x12], 0
test byte [esp + 0x18], 1
je 0x407cf7
cmp dword [esp + 0x34], 8
jb 0x407cf7
push dword [esp + 0x20]
call fcn.0058603b
add esp, 4
cmp byte [esp + 0x12], 0
je 0x407d09
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x407dc4
push ebx
lea ecx, [esp + 0x3c]
call fcn.00407fb0
lea edx, [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x60], 0
call fcn.00415c60
mov dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x4c], 8
mov bl, al
jb 0x407d43
push dword [esp + 0x38]
call fcn.0058603b
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
test bl, bl
jne 0x407d65
mov byte [esi + 0x6c], al
xor al, al
jmp 0x407dc4
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x407d7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea edx, [esi + 0x34]
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.00416040
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x407da2
push ebx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x407dc1
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x407dc1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407dc1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x6c]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8