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

Disassembly:
push 0xffffffffffffffff
push 0x42f5d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6d4
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov edi, 0x43b5cc
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48c]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x6f0], ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6f8]
call fcn.004231bf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, ebx
jle 0x404cda
cmp byte [esp + edx + 0x18], 0x5c
je 0x404c6f
cmp edx, ebx
jle 0x404ca7
mov al, byte [esp + edx + 0x17]
dec edx
cmp al, 0x5c
jne 0x404c62
cmp edx, ebx
jle 0x404ca7
lea edi, [esp + edx + 0x19]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x48c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x18], bl
jmp 0x404cd3
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x18], bl
lea edx, [ebp + 0x64]
cmp edx, ebp
jl 0x404c5b
lea ecx, [esp + 0x388]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
cmp byte [esp + 0x18], bl
jne 0x404d1b
lea edi, [esp + 0x388]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x270]
lea eax, [esp + 0x48c]
push edx
push eax
call fcn.004131c6
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x404d7a
mov ecx, dword [esp + 0x14]
push 0x43b524
push ecx
call fcn.00402b80
add esp, 8
lea edx, [esp + 0x388]
push edx
call edi
lea ecx, [esp + 0x6f4]
mov dword [esp + 0x6ec], esi
call fcn.00422dd3
xor eax, eax
jmp 0x404df3
mov ebp, dword [esp + 0x6f8]
mov ebx, 0x10
cmp byte [esp + 0x284], 0x2e
je 0x404db7
cmp dword [esp + 0x270], ebx
je 0x404db7
push ebp
push ecx
lea eax, [esp + 0x28c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00422dfd
mov ecx, dword [esp + 0x1c]
call fcn.00404b20
lea ecx, [esp + 0x270]
push ecx
push esi
call fcn.00413293
add esp, 8
cmp eax, 0xffffffff
jne 0x404d86
lea edx, [esp + 0x388]
push edx
call edi
lea ecx, [esp + 0x6f4]
mov dword [esp + 0x6ec], 0xffffffff
call fcn.00422dd3
mov eax, 1
mov ecx, dword [esp + 0x6e4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6e0
ret 8