Function at 0x450780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542f98
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x58f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x41], 0
test ebx, ebx
je 0x4507c8
cmp word [ebx], 0
jne 0x4507d7
cmp dword [edi + 0x48], 8
lea ebx, [edi + 0x34]
mov byte [ebp - 0x41], 1
jb 0x4507d7
mov ebx, dword [ebx]
test edx, edx
je 0x450894
cmp word [edx], 0
je 0x450894
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4507f0
sub ecx, esi
lea esi, [edi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00412ae0
cmp dword [esi + 0x14], 8
jb 0x450815
mov eax, dword [esi]
jmp 0x450817
mov eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00412950
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0x42]
cmp eax, 8
jb 0x450852
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
cmp byte [ebp - 0x42], 0
je 0x450962
cmp dword [esi + 0x14], 8
jb 0x450866
mov eax, dword [esi]
jmp 0x450868
mov eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00412950
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x28]
call fcn.00412890
jmp 0x450962
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.00453da0
cmp dword [esi + 0x14], 8
jb 0x4508a8
mov edx, dword [esi]
jmp 0x4508aa
mov edx, esi
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x4508c7
xor ecx, ecx
jmp 0x4508e0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x50], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4508d0
sub ecx, dword [ebp - 0x50]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00412ae0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
mov eax, dword [ebp - 0x14]
sete byte [ebp - 0x42]
cmp eax, 8
jb 0x45091c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
cmp byte [ebp - 0x42], 0
je 0x450962
cmp dword [esi + 0x14], 8
jb 0x45092c
mov eax, dword [esi]
jmp 0x45092e
mov eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00412950
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x450962
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
cmp byte [ebp - 0x41], 0
jne 0x450993
push ebx
lea ecx, [ebp - 0x28]
call fcn.00412950
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [ebp - 0x41], 1
cmp eax, 1
jne 0x450997
mov byte [ebp - 0x41], 0
test byte [ebp - 0x48], 1
je 0x4509b2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4509b2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004132e0
cmp byte [ebp - 0x41], 0
je 0x4509c3
mov byte [edi + 0x6c], 0
xor al, al
jmp 0x450a76
push ebx
lea ecx, [ebp - 0x40]
call fcn.00412950
lea edx, [ebp - 0x40]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00453e30
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4509fb
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004132e0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test bl, bl
jne 0x450a1a
mov byte [edi + 0x6c], al
xor al, al
jmp 0x450a76
mov eax, dword [edi + 0x68]
lea ebx, [edi + 0x68]
test eax, eax
je 0x450a31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea edx, [edi + 0x34]
mov dword [ebp - 0x4c], 0
mov ecx, esi
call fcn.00454240
cmp byte [edi + 0x6d], 0
mov eax, dword [edi]
mov eax, dword [eax]
je 0x450a56
push ebx
mov ecx, edi
call eax
mov byte [edi + 0x6c], al
jmp 0x450a73
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, edi
call eax
mov byte [edi + 0x6c], al
test al, al
je 0x450a73
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x450a73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [edi + 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ce8d
mov esp, ebp
pop ebp
ret 8