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

Disassembly:
mov eax, 0x574d3f
call fcn.00524444
sub esp, 0x21c
push ebx
push esi
mov ebx, ecx
push edi
push 0x5bff20
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call fcn.0053ebbd
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0053e8c4
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test esi, esi
mov edi, 0x5bfdbc
je 0x4f9f10
cmp byte [esi], 0
je 0x4f9f10
push edi
lea ecx, [ebp - 0x14]
call fcn.0053ef2b
push esi
lea ecx, [ebp - 0x14]
call fcn.0053ef2b
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4f9f2e
cmp byte [esi], 0
je 0x4f9f2e
push edi
lea ecx, [ebp - 0x10]
call fcn.0053ef2b
push esi
lea ecx, [ebp - 0x10]
call fcn.0053ef2b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00524e9f
pop ecx
test eax, eax
pop ecx
jne 0x4f9f47
push 1
pop esi
jmp 0x4fa0cd
lea eax, [ebp - 0x18]
add ebx, 8
push eax
mov ecx, ebx
push dword [ebp - 0x14]
call fcn.004fb0fb
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x18]
test esi, esi
je 0x4fa0cb
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call fcn.004fb0fb
mov edi, eax
neg edi
sbb edi, edi
and edi, dword [ebp + 0xc]
test edi, edi
jne 0x4f9f98
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.004fa0f8
mov edi, eax
test edi, edi
je 0x4fa0cb
mov ecx, dword [ebp - 0x20]
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.004f9149
mov ebx, dword [eax]
lea eax, [ebp - 0x228]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4f9fc8
and byte [ebp - 0x228], al
test ebx, ebx
je 0x4f9fd8
cmp byte [ebx], 0
je 0x4f9fd8
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0053eb4f
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x4fa0be
cmp dword [ebp + 0x10], 0
je 0x4fa041
lea eax, [ebp + 0x10]
lea ecx, [esi + 8]
push eax
call fcn.004fb1d0
mov ebx, eax
push dword [ebx + 4]
push dword [ebp + 8]
call fcn.004fb742
pop ecx
test eax, eax
pop ecx
jne 0x4fa028
push dword [ebx + 4]
push dword [ebp + 8]
call fcn.004a0938
pop ecx
test eax, eax
pop ecx
je 0x4f9ff2
push dword [ebx]
lea ecx, [esi + 4]
call fcn.004fadc4
test eax, eax
je 0x4f9ff2
inc dword [ebp + 0xc]
mov dword [esi], 1
jmp 0x4f9ff2
cmp dword [ebp + 0xc], 0
je 0x4fa0be
mov ebx, 0x5bd950
lea ecx, [esi + 4]
push ebx
push 0
call fcn.004faff5
test eax, eax
je 0x4fa061
mov dword [esi], 1
push dword [ebp + 8]
lea esi, [edi + 4]
mov ecx, esi
mov dword [edi], 1
push 0x5c7e70
call fcn.004faf65
mov ecx, eax
call fcn.0053ecd8
push ebx
push 0
mov ecx, esi
call fcn.004faff5
test eax, eax
je 0x4fa094
mov dword [edi], 1
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
push 1
pop eax
jmp 0x4fa0e7
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc