Function at 0x4a50c0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5139c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4c
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x28], esi
call fcn.004a6da0
mov eax, dword [esp + 0xa64]
lea ecx, [esp + 0x1c]
push eax
call fcn.004e1b94
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0xa5c], ebp
mov eax, dword [ecx - 8]
cmp eax, ebp
je 0x4a555f
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.004a6eb0
cmp eax, ebp
mov dword [esp + 0x20], eax
je 0x4a556a
push ebx
lea eax, [esp + 0x858]
push edi
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x458]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x254]
push edx
push eax
push ecx
call fcn.004bf636
add esp, 0x14
lea edx, [esp + 0x654]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x38]
call fcn.004db3a1
lea eax, [esp + 0x454]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0xa68], 1
call fcn.004e1e9b
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xa64], 2
mov eax, dword [ecx - 8]
cmp eax, 2
jle 0x4a52f5
lea edx, [esp + 0x20]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.004d6f0d
mov eax, dword [eax]
push 0x55c748
push eax
call fcn.004bdb15
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x20]
sete bl
call fcn.004e1e27
test bl, bl
je 0x4a52f5
mov ecx, dword [0x56b44c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x10]
mov bl, 3
lea ecx, [esp + 0x10]
mov byte [esp + 0xa64], bl
mov eax, dword [edx - 8]
add eax, 0xfffffffe
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004d6e91
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa68], 4
call fcn.004e1f6e
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa64], bl
call fcn.004e1e27
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004e2363
mov esi, eax
cmp esi, 0xffffffff
je 0x4a52d1
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.004d6f0d
push eax
lea edx, [esp + 0x20]
push 0x55c748
push edx
mov byte [esp + 0xa70], 5
call fcn.004e2140
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa68], 6
call fcn.004e1f6e
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa64], 5
call fcn.004e1e27
lea ecx, [esp + 0x14]
mov byte [esp + 0xa64], bl
call fcn.004e1e27
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004d6e91
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa68], 7
call fcn.004e1f6e
lea ecx, [esp + 0x14]
mov byte [esp + 0xa64], bl
call fcn.004e1e27
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x20]
mov byte [esp + 0xa64], 2
call fcn.004e1e27
lea ecx, [esp + 0x24c]
push ecx
lea ecx, [esp + 0x30]
call fcn.004e1e9b
mov eax, dword [esp + 0x10]
mov byte [esp + 0xa64], 8
cmp dword [eax - 8], ebp
je 0x4a535d
mov bl, 9
cmp word [eax], 0x5c
jne 0x4a535d
mov eax, dword [eax - 8]
lea edx, [esp + 0x14]
dec eax
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.004d6e91
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa68], bl
call fcn.004e1f6e
lea ecx, [esp + 0x14]
mov byte [esp + 0xa64], 8
call fcn.004e1e27
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
jne 0x4a5319
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004e2363
mov esi, eax
cmp esi, 0xffffffff
je 0x4a53fd
mov bl, 0xb
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004d6f0d
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0xa6c], 0xa
call fcn.004db676
lea ecx, [esp + 0x14]
mov byte [esp + 0xa64], 8
call fcn.004e1e27
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004d6e91
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa68], bl
call fcn.004e1f6e
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa64], 8
call fcn.004e1e27
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004e2363
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a5375
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
je 0x4a5419
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.004db676
lea ecx, [esp + 0x4c]
push ecx
call fcn.004bf2a5
add esp, 4
test eax, eax
je 0x4a543d
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.004db64a
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004e1b94
mov edx, dword [0x56b44c]
mov dword [esp + 0x34], edx
mov bl, 0xd
xor esi, esi
cmp edi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov byte [esp + 0xa64], bl
jle 0x4a54d2
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x14]
lea ecx, [eax + esi*4]
push ecx
push 0x5c
push edx
call fcn.004d69c2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa68], 0xe
call fcn.004e2254
lea ecx, [esp + 0x14]
mov byte [esp + 0xa64], bl
call fcn.004e1e27
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4a54b9
mov edx, dword [esp + 0x18]
push edx
call fcn.004e1329
mov eax, dword [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
inc esi
cmp esi, edi
jl 0x4a546e
mov edx, dword [esp + 0x18]
push edx
call ebp
pop edi
pop ebx
test eax, eax
jne 0x4a54f6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004a6db0
jmp 0x4a54fe
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x64c]
push ecx
call ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa5c], 0xc
call fcn.004e1e27
lea ecx, [esp + 0x10]
mov byte [esp + 0xa5c], 8
call fcn.004e1e27
lea ecx, [esp + 0x24]
mov byte [esp + 0xa5c], 2
call fcn.004e1e27
lea ecx, [esp + 8]
mov byte [esp + 0xa5c], 1
call fcn.004e1e27
lea ecx, [esp + 0x30]
mov byte [esp + 0xa5c], 0
call fcn.004db3d4
jmp 0x4a556a
mov ecx, esi
call fcn.004a6e90
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa5c], 0xffffffff
call fcn.004e1e27
mov ecx, dword [esp + 0xa54]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa58
ret 4