Function at 0x402b90
Capabilities:
Get common file path
Get session user name
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x404dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa80
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov dword [esp + 0xa98], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa98], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0xa98], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x38]
mov byte [esp + 0xa98], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0xa98], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0xa98], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xa98], 6
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x40]
mov ecx, ebp
push eax
mov byte [esp + 0xa9c], 7
call fcn.00403850
mov ecx, dword [esp + 0x40]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x684]
push str._sHelp_start.chm
push edx
mov byte [esp + 0xaa4], 8
call esi
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x16c]
push eax
push str._sclient.exe
push ecx
call esi
mov edx, dword [esp + 0x4c]
add esp, 0xc
lea eax, [esp + 0x478]
push edx
push str._s_saturnmain.exe
push eax
call esi
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp + 0x888]
push ecx
push str._s_regist.exe
push edx
call esi
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x270]
push eax
push str._sdbbackup.exe
push ecx
call esi
add esp, 0xc
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x57c]
push edx
push str._s_ssview.exe
push eax
call esi
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp + 0x374]
push ecx
push str._sSetCardNum.exe
push edx
call esi
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x784]
push eax
push str._sSetIP.exe
push ecx
call esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x74]
add esp, 0xc
rep stosd dword es:[edi], eax
lea edx, [esp + 0x54]
lea eax, [esp + 0x98c]
push edx
push eax
mov dword [esp + 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x5c]
push ecx
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x60]
mov byte [esp + 0xa98], 9
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa98], 0xa
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0xa98], 0xb
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x58]
mov byte [esp + 0xa98], 0xc
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x64]
mov byte [esp + 0xa98], 0xd
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x68]
mov byte [esp + 0xa98], 0xe
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x68]
lea ecx, [esp + 0x44]
push edx
call sub.MFC42.DLL_CString::operator
push 3
push 0x5c
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x5c
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x4c]
mov edi, eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x50]
mov byte [esp + 0xa98], 0xf
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x48]
mov byte [esp + 0xa98], 0x10
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push esi
mov bl, 0x11
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0xaa0], bl
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xa9c], 0x12
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa98], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
mov eax, dword [edx - 8]
sub eax, edi
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa9c], 0x13
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa98], bl
call sub.MFC42.DLL_CString::CString
push str.All_Users
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x50]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0xaa4], 0x14
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa9c], 0x15
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa98], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa98], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x3c]
push 0x407350
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa9c], 0x16
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa98], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 0x407340
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x402fa8
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x680]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push 0x407330
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x403006
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x16c]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x40731c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x403064
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x478]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push str._s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x4030c2
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x888]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push 0x4072f4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x403120
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x270]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push str._sIC
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x40317e
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x374]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push 0x4072cc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x4031dc
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x57c]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push 0x4072b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x40323a
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x784]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea edx, [esp + 0x44]
push 0x407350
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa9c], 0x17
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa98], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 0x407340
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x4032ce
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x680]
push eax
push edx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 0x407330
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x40332c
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x16c]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x40731c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x40338a
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x478]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push str._s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x4033e8
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x888]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push 0x4072f4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x403446
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x270]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push str._sIC
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x4034a4
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x34]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x374]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push 0x4072cc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x403502
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x57c]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push 0x4072b8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004037c0
test al, al
je 0x403560
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x784]
push eax
push ecx
mov ecx, ebp
call fcn.004036f0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReleaseBuffer
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x48]
mov byte [esp + 0xa98], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xa98], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa98], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov byte [esp + 0xa98], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0xa98], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0xa98], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa98], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0xa98], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa98], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xa98], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xa98], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xa98], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xa98], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xa98], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xa98], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa98], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xa98], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa98], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8c
ret