Function at 0x4a4e80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f5c28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x66d060]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x12], 0
test ebx, ebx
je 0x4a4ed6
cmp word [ebx], 0
jne 0x4a4ee6
cmp dword [esi + 0x48], 8
lea ebx, [esi + 0x34]
mov byte [esp + 0x12], 1
jb 0x4a4ee6
mov ebx, dword [ebx]
test edx, edx
je 0x4a4f15
cmp word [edx], 0
je 0x4a4f15
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4ef5
sub ecx, edi
lea edi, [esi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00478000
jmp 0x4a4ff0
lea edi, [esi + 0x4c]
mov ecx, edi
call fcn.004adf00
cmp dword [edi + 0x14], 8
jb 0x4a4f29
mov edx, dword [edi]
jmp 0x4a4f2b
mov edx, edi
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
cmp word [edx], ax
jne 0x4a4f4b
xor ecx, ecx
jmp 0x4a4f65
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4f54
sub ecx, dword [esp + 0x1c]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00478000
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
cmp dword [esp + 0x34], 8
mov byte [esp + 0x13], al
jb 0x4a4faa
push dword [esp + 0x20]
call fcn.00496180
mov al, byte [esp + 0x17]
add esp, 4
test al, al
je 0x4a4ff0
cmp dword [edi + 0x14], 8
jb 0x4a4fb8
mov eax, dword [edi]
jmp 0x4a4fba
mov eax, edi
push eax
lea ecx, [esp + 0x24]
call fcn.004773a0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 0
cmovae eax, dword [esp + 0x24]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0x34], 8
jb 0x4a4ff0
push dword [esp + 0x20]
call fcn.00496180
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x4a5028
push ebx
lea ecx, [esp + 0x24]
call fcn.004773a0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 1
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [esp + 0x12], 1
cmp eax, 1
jne 0x4a502d
mov byte [esp + 0x12], 0
test byte [esp + 0x18], 1
je 0x4a5047
cmp dword [esp + 0x34], 8
jb 0x4a5047
push dword [esp + 0x20]
call fcn.00496180
add esp, 4
cmp byte [esp + 0x12], 0
je 0x4a5059
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x4a5114
push ebx
lea ecx, [esp + 0x3c]
call fcn.004773a0
lea edx, [esp + 0x38]
mov dword [esp + 0x60], 0
mov ecx, edi
call fcn.004adf90
mov dword [esp + 0x60], 0xffffffff
mov bl, al
cmp dword [esp + 0x4c], 8
jb 0x4a5093
push dword [esp + 0x38]
call fcn.00496180
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
test bl, bl
jne 0x4a50b5
mov byte [esi + 0x6c], al
xor al, al
jmp 0x4a5114
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x4a50cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea edx, [esi + 0x34]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.004ae370
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x4a50f2
push ebx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x4a5111
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x4a5111
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a5111
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x6c]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0055337c
mov esp, ebp
pop ebp
ret 8