Function at 0x46d3c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4f22ec]
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 0x46d3f8
push eax
call fcn.004a552a
add esp, 4
mov dword [ebx + 0xc], 0xffffffff
push dword [ebx + 0x14]
lea eax, [ebp - 0x108]
push dword [ebx + 0x10]
push 0x4d32b8
push 0xffffffffffffffff
push 0x104
push eax
call fcn.0046d070
push dword [ebx + 0x14]
call fcn.004998ec
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 0x46d430
sub ecx, edi
je 0x46d47d
nop dword [eax + eax]
mov cl, byte [ebp + edx - 0x108]
cmp cl, 0x2f
jne 0x46d456
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 0x46d470
sub ecx, edi
cmp edx, ecx
jb 0x46d440
mov eax, dword [0x4f9ddc]
test eax, eax
je 0x46d498
push dword [ebx + 0x1c]
lea ecx, [ebp - 0x108]
push dword [ebx + 0x18]
push ecx
call eax
add esp, 0xc
cmp esi, 0x104
jae 0x46d731
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 0x46d4f2
push 2
push 1
call fcn.0049570f
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 0x46d59c
jmp 0x46d593
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 0x46d525
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x46d59c
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
jne 0x46d549
push eax
push eax
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x46d59c
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x46d580
push esi
call fcn.004998ec
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 0x46d59c
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.004998ec
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 0x46d5fc
push 2
push 1
call fcn.0049570f
push 0x180
push 0x30
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x8301
push esi
push eax
call fcn.004a547e
add esp, 0x1c
test esi, esi
je 0x46d6ab
push esi
call fcn.004998ec
add esp, 4
jmp 0x46d6ab
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 0x46d68e
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x46d68e
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x46d667
push esi
call fcn.004998ec
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004a547e
add esp, 0x18
jmp 0x46d6ab
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004a547e
add esp, 0x14
push esi
call fcn.004998ec
add esp, 4
jmp 0x46d6ab
push 0x180
push 0x30
push 0x8301
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004a547e
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 0x46d721
cmp dword [0x4f9dd4], 0
je 0x46d6e8
call fcn.004a4801
push dword [eax]
lea eax, [ebp - 0x108]
push eax
push str._nError:_Could_not_create__s__errno:__d_
call dword [0x4f9dd4]
add esp, 0xc
jmp 0x46d70a
call fcn.004a4801
push dword [eax]
lea eax, [ebp - 0x108]
push eax
push str._nError:_Could_not_create__s__errno:__d_
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 0x10
call fcn.004a4801
mov eax, dword [eax]
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
call fcn.00491a70
int3