Function at 0x401230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x403f88
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x407004]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
push ebx
push 0x23
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x270], ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x401481
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call dword [0x4050fc]
push str.XT_Common_Files_
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.Service.ini
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
mov byte [esp + 0x264], 1
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x1000
call esi
push 0x1000
call esi
test eax, eax
je 0x401396
call fcn.00402b50
mov edi, 8
cmp dword [esp + 0x30], edi
mov ebp, eax
mov eax, dword [esp + 0x1c]
jae 0x40130f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x40532c
push str.RemoteSession
push str.Config
call esi
push ebp
lea ecx, [esp + 0x54]
push 0x405330
push ecx
mov edx, 0x104
call fcn.00402900
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], edi
jae 0x40134d
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push edx
push str.RemoteSessionId
push str.Config
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0x54]
push 0x405330
push eax
mov edx, 0x104
call fcn.00402900
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], edi
jae 0x40138b
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
jmp 0x401432
call fcn.00402b50
mov edi, 8
cmp dword [esp + 0x30], edi
mov ebp, eax
mov eax, dword [esp + 0x1c]
jae 0x4013b0
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x40532c
push str.RemoteSession
push str.Config
call esi
push ebp
lea edx, [esp + 0x54]
push 0x405330
push edx
mov edx, 0x104
call fcn.00402900
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], edi
jae 0x4013ee
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x54]
push eax
push str.RemoteSessionId
push str.Config
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x54]
push 0x405330
push ecx
mov edx, 0x104
call fcn.00402900
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], edi
jae 0x40142c
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push edx
push str.RemoteSessionUpdate
push str.Config
call esi
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
call fcn.00401a20
add esp, 4
test eax, eax
je 0x401462
cmp dword [esp + 0x14], ebx
je 0x401462
call fcn.00401f10
test eax, eax
jne 0x401470
call fcn.004016d0
test eax, eax
jge 0x401470
call fcn.00402030
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x34]
mov dword [esp + 0x264], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040342c
add esp, 0x254
ret