Function at 0x4855b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6ea840]
sub esp, 0x404
add eax, 0xfffffff6
push ebx
mov ebx, ecx
cmp eax, 0x2e
ja case.0x4855d0.11
movzx eax, byte [eax + 0x485918]
jmp dword [eax*4 + 0x485910]
push esi
push 1
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.GameRanger_Launch_Log.txt
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x404]
push 0x606bcc
push eax
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x485908
lea ecx, [ebp - 4]
push edi
push ecx
call dword [sym.imp.msvcrt.dll_time]
mov edi, dword [sym.imp.msvcrt.dll_fprintf]
push 0x607244
push esi
call edi
push str.___Email_the_contents_of_this_log_file_to__accounts_GameRanger.com__n
push esi
call edi
lea edx, [ebp - 4]
push edx
call dword [sym.imp.msvcrt.dll_ctime]
push eax
push str.___Log_Opened:__s
push esi
call edi
mov eax, dword [ebx + 0xc1c]
push eax
push str.___Game:__________________s_n
push esi
call edi
add ebx, 0x40b
push ebx
push str.___Path:___________________s__n
push esi
call edi
lea ecx, [ebp - 0x404]
push ecx
push ebx
call fcn.00482190
add esp, 0x44
lea edx, [ebp - 0x404]
push edx
push str.___Compatibility_Mode:_____s__n
push esi
call edi
add esp, 0xc
cmp byte [0x6e9d78], 0
je 0x4856ca
push str.___Launch_Type:__________Hosting_n
push esi
call edi
push 0x6e9d90
push str.___Game_Description:_______s__n
push esi
call edi
movzx eax, word [0x6e9e90]
mov ecx, dword [0x6e9ea0]
push eax
push ecx
push str.___Players:_______________u__u_n
push esi
call edi
add esp, 0x24
jmp 0x4856d5
push str.___Launch_Type:__________Joining_n
push esi
call edi
add esp, 8
mov edx, dword [0x6e9e9c]
push edx
push str.___GameRanger_Account:____u_n
push esi
call edi
push 0x6e9fbe
push str.___GameRanger_Name:________s__n
push esi
call edi
mov eax, dword [0x6ea840]
push eax
push str.___Launch_Error:__________u_n
push esi
call edi
add esp, 0x24
call fcn.00456ee0
mov ebx, str.64bit
test al, al
jne 0x485715
mov ebx, str.32bit
call fcn.00459c30
push ebx
test eax, eax
je 0x485744
call fcn.00459c30
push eax
call fcn.00459c40
push eax
call fcn.00459c20
push eax
call fcn.00459c10
push eax
push str.___Windows_Version:_______u._u__Build__u__SP_u__s_n
push esi
call edi
add esp, 0x1c
jmp 0x485761
call fcn.00459c40
push eax
call fcn.00459c20
push eax
call fcn.00459c10
push eax
push str.___Windows_Version:_______u._u__Build__u___s_n
push esi
call edi
add esp, 0x18
call fcn.00459c90
test al, al
mov eax, str.64bit
jne 0x485774
mov eax, str.32bit
push eax
push str.___CPU_Type:______________s_n
push esi
call edi
call fcn.00459ca0
push eax
push str.___CPU_Count:_____________u_n
push esi
call edi
movsx ecx, byte [0x6e94e5]
push ecx
push str.___LaunchHit:_____________u_n
push esi
call edi
mov edx, dword [0x6e94e8]
push edx
push str.___LaunchCPErr:___________u_n
push esi
call edi
movsx eax, byte [0x6e94b3]
push eax
push str.___RegChanged:____________u_n
push esi
call edi
movsx ecx, byte [0x6e94da]
movsx edx, byte [0x6e94db]
movsx eax, byte [0x6e94d9]
push ecx
movsx ecx, byte [0x6e94d8]
push edx
push eax
push ecx
push str.___Check:_________________u__u__u__u_n
push esi
call edi
movsx edx, byte [0x6e94dd]
movsx eax, byte [0x6e94dc]
add esp, 0x54
push edx
push eax
push str.___Check2:________________u__u_n
push esi
call edi
movsx ecx, byte [0x6e94e4]
movsx edx, byte [0x6e94df]
push ecx
push edx
push str.___Check3:________________u__u_n
push esi
call edi
call fcn.00481b80
push eax
push str.___Check4:________________u_n
push esi
call edi
mov eax, dword [0x6e94e0]
movsx ecx, byte [0x6e94de]
push eax
push ecx
push str.___Check5:________________u___u_n
push esi
call edi
mov edx, dword [ebp + 8]
push edx
push str.___DirectPlay_Result:_____08X_n
push esi
call edi
add esp, 0x48
push str.dplay.dll
call fcn.00481a90
push eax
push str.___dplay.dll____Version:__s_n
push esi
call edi
push str.dplayx.dll
call fcn.00481a90
push eax
push str.___dplayx.dll___Version:__s_n
push esi
call edi
push str.dpnet.dll
call fcn.00481a90
push eax
push str.___dpnet.dll____Version:__s_n
push esi
call edi
push str.dpnwsock.dll
call fcn.00481a90
push eax
push str.___dpnwsock.dll_Version:__s_n
push esi
call edi
add esp, 0x40
push str.dpwsock.dll
call fcn.00481a90
push eax
push str.___dpwsock.dll__Version:__s_n
push esi
call edi
push str.dpwsockx.dll
call fcn.00481a90
push eax
push str.___dpwsockx.dll_Version:__s_n
push esi
call edi
push str.dpnsvr.exe
call fcn.00481a90
push eax
push str.___dpnsvr.exe___Version:__s_n
push esi
call edi
push str.dplaysvr.exe
call fcn.00481a90
push eax
push str.___dplaysvr.exe_Version:__s_n
push esi
call edi
mov ecx, dword [0x6e9490]
add esp, 0x40
pop edi
test ecx, ecx
je 0x4858f7
push esi
call fcn.005196c0
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov byte [0x6e94e6], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4