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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4e62
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x4e64ec]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x374], ebx
push esi
push eax
call fcn.00461360
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Ludashigame.json
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42613c
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00426d30
add esp, 8
test eax, eax
je 0x426106
cmp dword [ebp - 0x220], esi
je 0x426106
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0041aa00
mov edi, eax
add esp, 4
mov dword [ebp - 0x370], edi
test edi, edi
je 0x426101
push edi
call fcn.0041a8d0
add esp, 4
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x36c], esi
test eax, eax
jle 0x4260f8
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
push esi
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.0041bea0
add esp, 0x10
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x425e39
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425e2f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42615c
push edx
push ecx
call fcn.0045b4e9
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
je 0x4260a7
cmp dword [ebp - 0x24c], 0x10
lea edi, [ebp - 0x260]
lea eax, [ebp - 0x360]
cmovae edi, dword [ebp - 0x260]
mov dword [ebp - 0x364], eax
test edi, edi
jne 0x425e92
xor esi, esi
mov dword [ebp - 0x364], esi
jmp 0x425f56
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425e97
sub ecx, edx
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
lea esi, [ecx + 1]
push esi
push eax
mov dword [ebp - 0x368], esi
call fcn.004258c0
add esp, 0x10
push esi
push dword [ebp - 0x364]
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x425f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x425f42
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push esi
push edi
push 0
push 0xfde9
call ebx
mov esi, eax
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
push esi
push eax
call fcn.004258c0
add esp, 0x10
push esi
push dword [ebp - 0x364]
push dword [ebp - 0x368]
push edi
push 0
push 0xfde9
call ebx
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x426161
mov esi, dword [ebp - 0x364]
mov ebx, dword [ebp - 0x374]
mov eax, dword [0x4e8b14]
mov byte [ebp - 4], 4
test al, 1
jne 0x425f99
or eax, 1
mov dword [0x4e8b14], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4b9800
mov dword [0x4e8b08], 0x4bb654
mov dword [0x4e8b0c], eax
mov byte [0x4e8b10], 0
call fcn.0045b8f2
mov eax, dword [0x4e8b14]
add esp, 4
test al, 2
jne 0x425ff5
or eax, 2
mov dword [0x4e8b18], 0x4bb66c
mov dword [0x4e8b14], eax
xor eax, eax
push 0x4b9830
mov dword [0x4e8b1c], 0x4e8b08
mov dword [0x4e8b2c], 2
mov dword [0x4e8b24], 0
mov dword [0x4e8b28], 0
mov dword [0x4e8b30], eax
mov dword [0x4e8b20], 0x4e8b18
call fcn.0045b8f2
add esp, 4
mov eax, dword [0x4e8b18]
mov ecx, 0x4e8b18
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x368], eax
mov byte [ebp - 4], 5
test esi, esi
je 0x42602c
test esi, 0xffff0000
jne 0x42602c
movzx eax, si
lea ecx, [ebp - 0x368]
push eax
call fcn.0040a8d0
jmp 0x426038
push esi
lea ecx, [ebp - 0x368]
call fcn.00417fc0
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 7
cmp eax, ecx
je 0x426055
push eax
call fcn.0046b978
add esp, 4
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x368]
push ecx
cmp dword [ebx + 8], eax
je 0x426071
mov ecx, eax
call fcn.004189f0
add dword [ebx + 4], 4
jmp 0x426079
push eax
mov ecx, ebx
call fcn.00425960
mov edx, dword [ebp - 0x368]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42609b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x370]
mov esi, dword [ebp - 0x36c]
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4260e5
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4260db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42615c
push edx
push ecx
call fcn.0045b4e9
add esp, 8
inc esi
mov dword [ebp - 0x36c], esi
cmp esi, dword [ebp - 0x378]
jl 0x425dc4
push edi
call fcn.0041a710
add esp, 4
mov esi, 1
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x42613c
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426132
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42615c
push edx
push ecx
call fcn.0045b4e9
add esp, 8
mov eax, esi
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.0045b907
mov esp, ebp
pop ebp
ret 4
call fcn.0046b7b8
push 0x80
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x364]
call fcn.00425940
add esp, 0xc
call fcn.00409a00
int3