Function at 0x452f20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x110], ebx
push edi
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x452f58
push eax
call fcn.0048d98b
add esp, 4
mov dword [ebx + 0xc], 0xffffffff
push dword [ebx + 0x14]
lea eax, [ebp - 0x108]
push dword [ebx + 0x10]
push 0x4a3934
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00452c70
lea ecx, [ebp - 0x108]
add esp, 0x18
xor edx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452f84
sub ecx, edi
je 0x452fcd
nop
mov cl, byte [ebp + edx - 0x108]
cmp cl, 0x2f
jne 0x452fa6
mov byte [ebp + edx - 0x108], 0x5c
mov cl, 0x5c
cmp cl, 0x5c
mov eax, edx
lea ecx, [ebp - 0x108]
cmovne eax, esi
lea edi, [ecx + 1]
mov esi, eax
inc edx
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452fc0
sub ecx, edi
cmp edx, ecx
jb 0x452f90
mov eax, dword [0x4dba54]
test eax, eax
je 0x452fe8
push dword [ebx + 0x1c]
lea ecx, [ebp - 0x108]
push dword [ebx + 0x18]
push ecx
call eax
add esp, 0xc
cmp esi, 0x104
jae 0x453281
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x108]
add eax, esi
mov dword [ebp - 0x10c], eax
mov byte [eax], 0
cmp byte [ebp - 0x108], 0
jne 0x453042
push 2
push 1
call fcn.0047b53f
add esp, 8
mov esi, eax
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x4530ec
jmp 0x4530e3
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jg 0x453075
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4530ec
push 2
push edi
call fcn.0047b53f
mov esi, eax
add esp, 8
test esi, esi
jne 0x453099
push eax
push eax
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4530ec
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x4530d0
push esi
call fcn.004812c6
add esp, 4
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4530ec
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004812c6
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x10c], 0xffffffff
mov byte [eax], 0x2f
cmp byte [ebp - 0x108], 0
jne 0x45314c
push 2
push 1
call fcn.0047b53f
push 0x180
push 0x30
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x8301
push esi
push eax
call fcn.0048d8da
add esp, 0x1c
test esi, esi
je 0x4531fb
push esi
call fcn.004812c6
add esp, 4
jmp 0x4531fb
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x4531de
push 2
push edi
call fcn.0047b53f
mov esi, eax
add esp, 8
test esi, esi
je 0x4531de
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x4531b7
push esi
call fcn.004812c6
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0048d8da
add esp, 0x18
jmp 0x4531fb
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0048d8da
add esp, 0x14
push esi
call fcn.004812c6
add esp, 4
jmp 0x4531fb
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0048d8da
add esp, 0x14
mov ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
mov dword [ecx + 0xc], eax
pop ebx
test eax, eax
jns 0x453271
cmp dword [0x4dba4c], 0
je 0x453238
call fcn.0048cd61
push dword [eax]
lea eax, [ebp - 0x108]
push eax
push str.Error:_Could_not_create__s__errno:__d_
call dword [0x4dba4c]
add esp, 0xc
jmp 0x45325a
call fcn.0048cd61
push dword [eax]
lea eax, [ebp - 0x108]
push eax
push str.Error:_Could_not_create__s__errno:__d_
call fcn.0041c90e
push 0xa
call fcn.0048ccb9
add esp, 0x10
call fcn.0048cd61
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00475c80
mov esp, ebp
pop ebp
ret
call fcn.00475db1
int3