Function at 0x47f620
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5512ec]
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 0x47f658
push eax
call fcn.004ecd01
add esp, 4
mov dword [ebx + 0xc], 0xffffffff
push dword [ebx + 0x14]
lea eax, [ebp - 0x108]
push dword [ebx + 0x10]
push 0x52fc78
push 0xffffffffffffffff
push 0x104
push eax
call fcn.0047f2e0
push dword [ebx + 0x14]
call fcn.004d1211
lea ecx, [ebp - 0x108]
mov dword [ebx + 0x14], esi
add esp, 0x1c
lea edi, [ecx + 1]
xor edx, edx
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47f690
sub ecx, edi
je 0x47f6dd
nop dword [eax + eax]
mov cl, byte [ebp + edx - 0x108]
cmp cl, 0x2f
jne 0x47f6b6
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 0x47f6d0
sub ecx, edi
cmp edx, ecx
jb 0x47f6a0
mov eax, dword [0x558e9c]
test eax, eax
je 0x47f6f8
push dword [ebx + 0x1c]
lea ecx, [ebp - 0x108]
push dword [ebx + 0x18]
push ecx
call eax
add esp, 0xc
cmp esi, 0x104
jae 0x47f991
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 0x47f752
push 2
push 1
call fcn.004b6706
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 0x47f7fc
jmp 0x47f7f3
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 0x47f785
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x47f7fc
push 2
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
jne 0x47f7a9
push eax
push eax
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x47f7fc
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x47f7e0
push esi
call fcn.004d1211
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 0x47f7fc
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.004d1211
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 0x47f85c
push 2
push 1
call fcn.004b6706
push 0x180
push 0x30
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x8301
push esi
push eax
call fcn.004ecb34
add esp, 0x1c
test esi, esi
je 0x47f90b
push esi
call fcn.004d1211
add esp, 4
jmp 0x47f90b
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 0x47f8ee
push 2
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x47f8ee
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x47f8c7
push esi
call fcn.004d1211
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004ecb34
add esp, 0x18
jmp 0x47f90b
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004ecb34
add esp, 0x14
push esi
call fcn.004d1211
add esp, 4
jmp 0x47f90b
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004ecb34
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 0x47f981
cmp dword [0x558e94], 0
je 0x47f948
call fcn.004eba05
push dword [eax]
lea eax, [ebp - 0x108]
push eax
push str._nError:_Could_not_create__s__errno:__d_
call dword [0x558e94]
add esp, 0xc
jmp 0x47f96a
call fcn.004eba05
push dword [eax]
lea eax, [ebp - 0x108]
push eax
push str._nError:_Could_not_create__s__errno:__d_
call fcn.0042b3d0
push 0xa
call fcn.004ebc9d
add esp, 0x10
call fcn.004eba05
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
call fcn.004a8c90
int3