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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10127782
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x10167c60]
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 - 0x38c], ebx
push esi
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x10172a24]
test al, 1
jne 0x10063e86
or eax, 1
mov dword [0x10172a20], esi
mov dword [0x10172a24], eax
mov byte [ebp - 0x365], 0
lea eax, [ebp - 0x374]
mov dword [ebp - 4], 0
push eax
call fcn.10085d82
lea eax, [ebp - 0x374]
mov dword [ebp - 4], 1
mov dword [ebp - 0x388], eax
lea eax, [ebp - 0x365]
mov dword [ebp - 0x384], eax
lea eax, [ebp - 0x388]
push eax
push 0x10063ab0
push 0x10172a20
call fcn.1008615f
add esp, 0x10
test eax, eax
je 0x100642cc
lea eax, [ebp - 0x374]
mov dword [ebp - 4], 2
push eax
call fcn.10085dbc
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x10172a28
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 0x100642ac
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10016e70
add esp, 8
test eax, eax
je 0x10064276
cmp dword [ebp - 0x220], 0
je 0x10064276
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.10097680
add esp, 4
mov dword [ebp - 0x380], eax
test eax, eax
je 0x10064271
push str.game_process
push eax
call fcn.100975c0
add esp, 8
mov dword [ebp - 0x384], eax
test eax, eax
je 0x10064263
push eax
call fcn.100975a0
mov edi, eax
add esp, 4
mov dword [ebp - 0x378], edi
test edi, edi
jle 0x10063fed
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
sar eax, 2
cmp edi, eax
jbe 0x10063fed
cmp edi, 0x3fffffff
ja 0x100642ec
push edi
mov ecx, ebx
call fcn.10064cd0
xor esi, esi
mov dword [ebp - 0x37c], esi
test edi, edi
jle 0x10064263
nop dword [eax]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 6
push eax
push esi
push dword [ebp - 0x384]
lea eax, [ebp - 0x260]
push eax
call fcn.10098670
add esp, 0x10
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x1006407a
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10064070
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100642f1
push edx
push ecx
call fcn.100c459e
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
je 0x10064216
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 0x100640d3
xor eax, eax
mov dword [ebp - 0x364], eax
jmp 0x1006419d
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100640d8
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 - 0x370], esi
call fcn.10007050
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 0x10064183
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10064183
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.10007050
add esp, 0x10
push esi
push dword [ebp - 0x364]
push dword [ebp - 0x370]
push edi
push 0
push 0xfde9
call ebx
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x100642f6
mov eax, dword [ebp - 0x364]
mov ebx, dword [ebp - 0x38c]
mov esi, dword [ebp - 0x37c]
push eax
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 9
call fcn.100079a0
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0xb
cmp eax, ecx
je 0x100641ca
push eax
call fcn.100e9f68
add esp, 4
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x36c]
push ecx
cmp dword [ebx + 8], eax
je 0x100641e6
mov ecx, eax
call fcn.1000d040
add dword [ebx + 4], 4
jmp 0x100641ee
push eax
mov ecx, ebx
call fcn.10063ba0
mov edx, dword [ebp - 0x36c]
or eax, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10064210
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x378]
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x10064254
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006424a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100642f1
push edx
push ecx
call fcn.100c459e
add esp, 8
inc esi
mov dword [ebp - 0x37c], esi
cmp esi, edi
jl 0x10064000
push dword [ebp - 0x380]
call fcn.10097510
add esp, 4
mov esi, 1
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x100642ac
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100642a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100642f1
push edx
push ecx
call fcn.100c459e
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.100c495f
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x374]
mov byte [ebp - 4], 3
push eax
call fcn.10085ddd
add esp, 4
mov byte [ebp - 4], 1
test al, al
jne 0x10064315
call fcn.10086177
call fcn.1000bdc0
call fcn.100e9c89
push 0x80
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x364]
call fcn.100070d0
add esp, 0xc
call fcn.10008540
sub esp, 8
lea eax, [ebp - 0x374]
mov ecx, esp
push eax
call fcn.1000c170
call fcn.1000cb30
int3