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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e33d2
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x51f524]
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]
xor esi, esi
push 0x208
mov dword [ebp - 0x380], eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0048d040
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 0x42a6e6
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.0042c2b0
add esp, 8
test eax, eax
je 0x42a6b0
cmp dword [ebp - 0x220], esi
je 0x42a6b0
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0041ca90
mov esi, eax
add esp, 4
mov dword [ebp - 0x370], esi
test esi, esi
je 0x42a6ab
push esi
call fcn.0041c960
mov edi, eax
xor ebx, ebx
add esp, 4
mov dword [ebp - 0x374], edi
mov dword [ebp - 0x36c], ebx
test edi, edi
jle 0x42a6a2
nop dword [eax + eax]
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 ebx
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.0041df30
add esp, 0x10
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x42a395
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42a38b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a706
push edx
push ecx
call fcn.00466699
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
je 0x42a659
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 0x42a3ee
xor ebx, ebx
mov dword [ebp - 0x364], ebx
jmp 0x42a4ac
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a3f3
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.00429e10
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 0x42a49e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42a49e
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.00429e10
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 0x42a71f
mov ebx, dword [ebp - 0x364]
mov byte [ebp - 4], 4
call fcn.00409e40
mov ecx, eax
test ecx, ecx
je 0x42a715
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x368], esi
mov byte [ebp - 4], 5
test ebx, ebx
je 0x42a5cd
test ebx, 0xffff0000
jne 0x42a4f5
movzx eax, bx
lea ecx, [ebp - 0x368]
push eax
call fcn.0040aa70
jmp 0x42a5d8
mov edi, ebx
lea ecx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42a500
sub edi, ecx
sar edi, 1
je 0x42a5cd
mov eax, dword [esi - 0xc]
mov edx, ebx
sub edx, esi
mov dword [ebp - 0x37c], eax
sar edx, 1
mov dword [ebp - 0x378], edx
test edi, edi
js 0x42a70b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42a55b
push edi
lea ecx, [ebp - 0x368]
call fcn.0040ac20
mov esi, dword [ebp - 0x368]
mov edx, dword [ebp - 0x378]
cmp edx, dword [ebp - 0x37c]
ja 0x42a5ab
mov eax, dword [esi - 8]
lea ecx, [edi + edi]
lea edx, [esi + edx*2]
test ecx, ecx
je 0x42a5b9
test edx, edx
jne 0x42a586
call fcn.004976de
mov dword [eax], 0x16
call fcn.004975b8
jmp 0x42a5b9
add eax, eax
cmp eax, ecx
jae 0x42a59e
call fcn.004976de
mov dword [eax], 0x22
call fcn.004975b8
jmp 0x42a5b9
push ecx
push edx
push esi
call fcn.0048cac0
add esp, 0xc
jmp 0x42a5b9
push edi
push ebx
push dword [esi - 8]
push esi
call fcn.00409c30
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x42a70b
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x42a5de
lea ecx, [ebp - 0x368]
call fcn.00417370
mov esi, dword [ebp - 0x368]
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 7
cmp eax, ecx
je 0x42a5fb
push eax
call fcn.00497788
add esp, 4
mov ebx, dword [ebp - 0x380]
lea ecx, [ebp - 0x368]
push ecx
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x42a61d
mov ecx, eax
call fcn.0041aa80
add dword [ebx + 4], 4
jmp 0x42a62b
push eax
mov ecx, ebx
call fcn.00429eb0
mov esi, dword [ebp - 0x368]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42a647
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x374]
mov esi, dword [ebp - 0x370]
mov ebx, dword [ebp - 0x36c]
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42a693
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42a689
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a706
push edx
push ecx
call fcn.00466699
add esp, 8
inc ebx
mov dword [ebp - 0x36c], ebx
cmp ebx, edi
jl 0x42a320
push esi
call fcn.0041c7a0
add esp, 4
mov esi, 1
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x42a6e6
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42a6dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42a706
push edx
push ecx
call fcn.00466699
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.00466ab7
mov esp, ebp
pop ebp
ret 4
call fcn.004975c8
push 0x80070057
call fcn.00409b80
push 0x80004005
call fcn.00409b80
push 0x80
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x364]
call fcn.00429e90
add esp, 0xc
call fcn.00409ba0
int3