Function at 0x45f920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f562
mov eax, dword fs:[0]
push eax
sub esp, 0x65c
mov eax, dword [0x4be5b4]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x658], eax
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x45fcb0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x65c], eax
add eax, 0x10
mov dword [ebp - 0x660], eax
push 0x210
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00432c40
push 0x210
lea eax, [ebp - 0x640]
push 0
push eax
call fcn.00432c40
add esp, 0x18
lea ecx, [ebp - 0x654]
call fcn.00477b40
push ebx
push edi
push esi
lea ecx, [ebp - 0x654]
mov byte [ebp - 4], 1
call fcn.00477ea0
or edi, 0xffffffff
test eax, eax
jne 0x45f9e9
lea ecx, [ebp - 0x654]
call fcn.00477b60
xor ebx, ebx
jmp 0x45fc71
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00432c40
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push str.LDSGameMasterStore
push eax
call esi
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x45fcba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x644]
call fcn.00406bc0
test al, al
jne 0x45fa88
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fa66
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x644]
call fcn.00416a50
push 1
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x654]
call fcn.00478050
test eax, eax
jne 0x45fad7
mov edx, dword [ebp - 0x644]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fac5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x654]
call fcn.00477b60
xor ebx, ebx
jmp 0x45fc71
push str.360Base
lea eax, [ebp - 0x220]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push 0x493de0
push eax
lea eax, [ebp - 0x430]
push eax
call ebx
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x45fcc4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x648]
call fcn.00406bc0
test al, al
jne 0x45fb62
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fb40
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x648]
call fcn.00416a50
mov ecx, dword [0x4c3da0]
mov byte [ebp - 4], 5
test ecx, ecx
jne 0x45fbca
mov esi, dword [0x4c3da4]
push esi
mov dword [ebp - 0x664], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c3da0], 0
jne 0x45fbb9
push 0x4c2644
push 0x20
call fcn.0042cd78
add esp, 8
mov dword [ebp - 0x668], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x45fbb2
mov ecx, eax
call fcn.0045b3b0
jmp 0x45fbb4
xor eax, eax
mov dword [0x4c3da0], eax
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4c3da0]
lea eax, [ebp - 0x648]
push eax
call fcn.0045b610
mov edx, dword [ebp - 0x648]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fbf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.UtilsLDSBasic.dll
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x640]
push eax
call ebx
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x45faa4
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x658]
mov edx, dword [ebp - 0x644]
add edx, 0xfffffff0
test eax, eax
mov dword [ecx + 0xb0], eax
mov eax, edi
je 0x45faaf
mov ebx, 1
mov byte [ebp - 4], bl
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45fc66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x654]
call fcn.00477b60
mov eax, dword [ebp - 0x65c]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x45fc90
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0042c75e
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
int3