Function at 0x48c0d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645dfe
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6f36d4]
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 - 0x22c], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x230], 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
lea ebx, [edi + 0x2c]
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [edi + 0x4c]
mov byte [ebp - 4], 2
mov dword [edi + 0x44], 1
mov dword [edi + 0x48], 0x7d000
mov dword [ebp - 0x224], esi
call fcn.00480300
mov ecx, eax
test ecx, ecx
je 0x48c387
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [edi + 0x48], 0x7d000
call fcn.005d9d70
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 0x676124
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.00480300
mov ecx, eax
test ecx, ecx
je 0x48c391
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x21c]
call fcn.0047dcb0
test al, al
jne 0x48c252
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c230
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00482800
mov esi, dword [ebp - 0x21c]
mov ecx, esi
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c261
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00484230
mov eax, dword [ebx + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mov dword [ebp - 0x228], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055d73c
add esp, 4
mov dword [ebp - 0x220], eax
test eax, eax
je 0x48c34d
mov edi, dword [ebp - 0x228]
add edi, edi
push edi
push 0
push eax
call fcn.005d9d70
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x48c2c6
mov ebx, dword [ebx]
shr edi, 1
je 0x48c308
mov ecx, dword [ebp - 0x220]
mov edx, SysReAllocString
sub edx, edi
sub ebx, ecx
nop dword [eax]
lea eax, [edx + edi]
test eax, eax
je 0x48c2fb
movzx eax, word [ebx + ecx]
test ax, ax
je 0x48c2fb
mov word [ecx], ax
add ecx, 2
sub edi, 1
jne 0x48c2e0
test edi, edi
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [ebp - 0x220]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, ebx
lea edi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x48c320
mov ecx, dword [ebp - 0x224]
sub edx, edi
sar edx, 1
push edx
push ebx
call fcn.00482800
push 2
push ebx
call fcn.0055d2a5
mov edi, dword [ebp - 0x22c]
add esp, 8
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48c369
mov ecx, dword [esi]
push esi
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.0055d6c3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0047dc90
push 0x80004005
call fcn.0047dc90
int3