Function at 0x48b1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6294be
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], edi
lea eax, [edi + 8]
mov dword [edi], vtable.CSmartLogger.0
push eax
mov dword [edi + 4], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x48b4a1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 2
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0x7d000
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x48b4ab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x38], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [edi + 0x34], 0x7d000
call fcn.005c7920
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.LDSGameCenter
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x657fd4
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.0047fb20
mov ecx, eax
test ecx, ecx
je 0x48b4b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x220]
call fcn.0047d4d0
test al, al
jne 0x48b334
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b312
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00481fe0
mov eax, dword [ebp - 0x220]
mov ecx, dword [edi + 0x2c]
mov byte [ebp - 4], 5
lea ebx, [eax - 0x10]
lea esi, [ecx - 0x10]
mov dword [ebp - 0x224], ebx
cmp ebx, esi
je 0x48b3a0
cmp dword [esi + 0xc], 0
jl 0x48b391
mov ecx, dword [ebx]
cmp ecx, dword [esi]
jne 0x48b391
push ebx
call fcn.0047d610
add esp, 4
mov dword [ebp - 0x21c], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48b389
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x21c]
lea ecx, [eax + 0x10]
mov dword [edi + 0x2c], ecx
jmp 0x48b3a0
push dword [eax - 0xc]
lea ecx, [edi + 0x2c]
push eax
call fcn.00481fe0
mov ecx, dword [edi + 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48b3a3
sub ecx, edx
mov edx, 2
sar ecx, 1
lea esi, [ecx + 1]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054d20c
add esp, 4
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x48b46a
add esi, esi
push esi
push 0
push eax
call fcn.005c7920
mov ebx, dword [edi + 0x2c]
add esp, 0xc
shr esi, 1
je 0x48b42a
mov ecx, dword [ebp - 0x21c]
mov edx, SysReAllocString
sub edx, esi
sub ebx, ecx
lea eax, [edx + esi]
test eax, eax
je 0x48b41d
movzx eax, word [ebx + ecx]
test ax, ax
je 0x48b41d
mov word [ecx], ax
add ecx, 2
sub esi, 1
jne 0x48b402
test esi, esi
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [ebp - 0x21c]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, ebx
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48b440
sub edx, esi
lea ecx, [edi + 0x38]
sar edx, 1
push edx
push ebx
call fcn.00481fe0
push 2
push ebx
call fcn.0054cd75
mov ebx, dword [ebp - 0x224]
add esp, 8
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x48b483
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054d193
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0047d4b0
push 0x80004005
call fcn.0047d4b0
push 0x80004005
call fcn.0047d4b0
int3