Function at 0x4a6a30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x638121
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6cd400]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x6cd400]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x14], 0
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x4a6a86
cmp word [ebx], 0
jne 0x4a6a96
cmp dword [esi + 0x48], 8
lea ebx, [esi + 0x34]
mov byte [esp + 0x12], 1
jb 0x4a6a96
mov ebx, dword [ebx]
test edx, edx
je 0x4a6ac5
cmp word [edx], 0
je 0x4a6ac5
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6aa5
sub ecx, edi
sar ecx, 1
push ecx
lea edi, [esi + 0x4c]
push edx
mov ecx, edi
call fcn.00403c30
jmp 0x4a6bfe
lea edi, [esi + 0x4c]
mov ecx, edi
call fcn.004aa920
cmp dword [edi + 0x14], 8
jb 0x4a6ad9
mov edx, dword [edi]
jmp 0x4a6adb
mov edx, edi
xor eax, eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
jne 0x4a6b0b
xor ecx, ecx
jmp 0x4a6b25
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6b14
sub ecx, dword [esp + 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00403c30
mov dword [esp + 0x48], 0
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
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 8
mov byte [esp + 0x13], al
jb 0x4a6b7a
push dword [esp + 0x20]
call fcn.004c56c2
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
test al, al
je 0x4a6bfe
cmp dword [edi + 0x14], 8
jb 0x4a6b9f
mov eax, dword [edi]
jmp 0x4a6ba1
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.004035b0
mov dword [esp + 0x48], 1
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]
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x4a6be7
push dword [esp + 0x20]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp byte [esp + 0x12], 0
jne 0x4a6c3e
push ebx
lea ecx, [esp + 0x24]
call fcn.004035b0
mov dword [esp + 0x48], 2
mov dword [esp + 0x14], 1
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [esp + 0x12], 1
cmp eax, 1
jne 0x4a6c43
mov byte [esp + 0x12], 0
mov dword [esp + 0x48], 0xffffffff
test byte [esp + 0x14], 1
je 0x4a6c7c
cmp dword [esp + 0x34], 8
jb 0x4a6c65
push dword [esp + 0x20]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp byte [esp + 0x12], 0
je 0x4a6c8e
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x4a6d49
push ebx
lea ecx, [esp + 0x24]
call fcn.004035b0
lea edx, [esp + 0x20]
mov ecx, edi
mov dword [esp + 0x48], 3
call fcn.004aa9b0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x34], 8
mov bl, al
jb 0x4a6cc8
push dword [esp + 0x20]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
test bl, bl
jne 0x4a6cea
mov byte [esi + 0x6c], al
xor al, al
jmp 0x4a6d49
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x4a6d01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea edx, [esi + 0x34]
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.004a0b10
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x4a6d27
push ebx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x4a6d46
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x4a6d46
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a6d46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x6c]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret 8