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

Disassembly:
push 0xffffffffffffffff
push 0x46e95b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
push str.CRsWork::SetMonFilter09
push 0x473ab0
push 0x80
call fcn.00431310
add esp, 0xc
xor ebx, ebx
push 0x103
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call fcn.00446e10
add esp, 0xc
lea edi, [esp + 0x54]
call fcn.004016a0
test eax, eax
jne 0x408783
push str.CRsWork::SetMonFilter09
push str._s_GetInstallPath_failed
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x408920
push 0x104
lea ecx, [esp + 0x161]
push ebx
push ecx
mov byte [esp + 0x168], bl
call fcn.00446e10
add esp, 0xc
lea edx, [esp + 0x15c]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x14]
push ecx
call fcn.004080c0
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x274], ebx
call fcn.00406820
test eax, eax
jne 0x4088e1
push ebx
call dword [esp + 0x28]
mov esi, eax
cmp esi, ebx
je 0x4088bb
mov edx, dword [esi]
mov eax, dword [edx]
push 0x473cc4
mov ecx, esi
call eax
test eax, eax
je 0x4088bb
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov word [esp + 0x32], cx
mov edx, 0x1770
push ebx
lea ecx, [esp + 0x30]
mov word [esp + 0x34], dx
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov dword [esp + 0x38], vtable.EmptyRisingMessageCallback.0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], 1
call eax
mov edi, eax
cmp edi, ebx
je 0x4088a9
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0xfa2
mov word [esp + 0x40], cx
push 8
lea ecx, [esp + 0x50]
push ecx
mov edx, 0xffff
mov dword [esp + 0x58], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov word [esp + 0x4a], dx
push 0x1f9
lea edx, [esp + 0x48]
push edx
mov ecx, edi
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], ebx
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push edi
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test byte [esp + 0x20], 2
je 0x4088e1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4088d1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call eax
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esp + 0x270], 0xffffffff
test byte [esp + 0x20], 2
je 0x408920
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x408910
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.004426a0
add esp, 0x264
ret