Function at 0x4318c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b977
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x47f6d0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x388], ecx
mov dword [ebp - 0x10], 0
push 0x208
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00437a10
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x23c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Ludashigame.json
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431986
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.lockhomepagegame.json
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431986
jmp 0x431b36
lea ecx, [ebp - 0x34]
call fcn.00431b60
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.00433750
add esp, 8
test eax, eax
je 0x4319bb
lea ecx, [ebp - 0x34]
call fcn.0042e690
movzx ecx, al
test ecx, ecx
je 0x4319cf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040a990
jmp 0x431b36
lea ecx, [ebp - 0x34]
call fcn.0040aa60
push eax
call fcn.0042c210
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x431b18
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042d770
add esp, 4
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], 0
jmp 0x431a1a
mov eax, dword [ebp - 0x244]
add eax, 1
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
cmp ecx, dword [ebp - 0x240]
jge 0x431b0c
push 0x46e926
lea ecx, [ebp - 0x280]
call fcn.00407d10
mov byte [ebp - 4], 1
lea edx, [ebp - 0x280]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.0042e310
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
call fcn.0040a990
lea ecx, [ebp - 0x260]
call fcn.0042e690
movzx eax, al
test eax, eax
jne 0x431af8
push 0xfde9
lea ecx, [ebp - 0x260]
call fcn.0040aa60
push eax
lea ecx, [ebp - 0x384]
call fcn.00431d10
mov dword [ebp - 0x38c], eax
mov ecx, dword [ebp - 0x38c]
mov dword [ebp - 0x390], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x390]
call fcn.00431d70
push eax
lea ecx, [ebp - 0x264]
call fcn.00406320
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x384]
call fcn.00431d40
lea edx, [ebp - 0x264]
push edx
mov ecx, dword [ebp + 8]
call fcn.00431c90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.00404110
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.0040a990
jmp 0x431a0b
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042c170
add esp, 4
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040a990
xor ecx, ecx
jne 0x4318f8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043718c
mov esp, ebp
pop ebp
ret 4