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

Disassembly:
push 0xffffffffffffffff
push 0x46ef18
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push str.CRsWork::InitComx3
push 0x473ab0
push 0x80
mov dword [esp + 0x238], 0
call fcn.00431310
add esp, 0xc
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00446e10
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x234]
push 0
push eax
push str.CRsWork::SwitchLoadDLLDir
push str._s...DIr_s_BAlreadyWitch__d
push 0x80
mov edi, eax
call fcn.00431310
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0x14
push str.SetDllDirectoryA
push 0x473a1c
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push edi
test eax, eax
je 0x409b4c
call eax
jmp 0x409b52
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
push str.CRsWork::SwitchLoadDLLDir
push str._s...return__d
push 0x80
call fcn.00431310
mov edx, dword [esi + 0x54]
mov eax, dword [esp + 0x244]
mov edx, dword [edx + 8]
lea edi, [esi + 0x54]
add esp, 0x10
push eax
mov ecx, edi
call edx
cmp eax, 0xffffffff
jne 0x409bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.RapInstall.exe_end__Load_comx3_failed._LastError___d.
push 0x80
call fcn.00431310
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x240]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esi + 0x10], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x409d99
push 1
lea ecx, [esp + 0x14]
push ecx
push str.CRsWork::SwitchLoadDLLDir
push str._s...DIr_s_BAlreadyWitch__d
push 0x80
call fcn.00431310
add esp, 0x14
push str.SetDllDirectoryA
push 0x473a1c
call ebp
push eax
call ebx
test eax, eax
je 0x409c0e
push 0
call eax
jmp 0x409c19
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
push str.CRsWork::SwitchLoadDLLDir
push str._s...return__d
push 0x80
call fcn.00431310
push 0x103
lea eax, [esp + 0x12d]
push 0
push eax
mov byte [esp + 0x134], 0
call fcn.00446e10
add esp, 0x1c
mov eax, 0x104
lea ecx, [esp + 0x118]
call fcn.00406570
test eax, eax
jne 0x409c74
push str.RsGetUserDataPath_Failed_____ERROR___
push 0x80
call fcn.00431310
add esp, 8
mov edx, dword [esi + 0x64]
push 3
lea ecx, [esp + 0x11c]
push ecx
push str.rssetup
call edx
add esp, 0xc
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x409ce5
mov eax, dword [esp + 0x234]
push eax
push str.RS_InitializeCallCenter_Failed.Comx3Path_s
push 0x80
call fcn.00431310
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x240]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x409d99
mov edx, dword [eax]
push 0
lea ecx, [esi + 4]
push ecx
push 1
mov ecx, eax
mov eax, dword [edx + 0x28]
push 0x1451
call eax
mov dword [esi + 0x50], eax
test eax, eax
jne 0x409d66
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x68]
push ecx
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, edi
mov dword [esi + 0x4c], 0
call edx
push str.Logon_Failed.
push 0x80
call fcn.00431310
mov dword [esp + 0x234], 0xffffffff
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x409d99
mov dword [esp + 0x22c], 0xffffffff
mov eax, dword [esp + 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004426a0
add esp, 0x220
ret 4