Function at 0x418710
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d48a
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x33c], 0
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x344]
call fcn.00418cd0
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x350], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x350]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.00409530
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c0]
call fcn.00403030
lea ecx, [ebp - 0x2d8]
push ecx
mov ecx, dword [ebp - 0x344]
call fcn.00418e20
mov dword [ebp - 0x354], eax
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x358], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x358]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.00409530
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2d8]
call fcn.00403030
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x2f0]
push eax
call fcn.00409530
add esp, 8
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x360], ecx
mov byte [ebp - 4], 6
push 0x71dcd0
mov edx, dword [ebp - 0x360]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.0040db20
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2f0]
call fcn.00403030
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x248]
push edx
call fcn.004253e0
add esp, 8
movzx eax, al
test eax, eax
je 0x4188c7
lea ecx, [ebp - 0x260]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4188c7
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004030e0
mov edx, dword [ebp - 0x33c]
or edx, 1
mov dword [ebp - 0x33c], edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x260]
call fcn.00403030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00403030
mov eax, dword [ebp + 8]
jmp 0x418bdd
push 0x71dce0
lea ecx, [ebp - 0x230]
call fcn.00403090
mov byte [ebp - 4], 9
push str.AKJiaSu
lea ecx, [ebp - 0x2a8]
call fcn.00403090
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x33c]
or eax, 2
mov dword [ebp - 0x33c], eax
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x2a8]
push edx
call fcn.00409ae0
add esp, 8
movzx eax, al
test eax, eax
je 0x418939
lea ecx, [ebp - 0x230]
call fcn.00403010
movzx ecx, al
test ecx, ecx
jne 0x418939
mov dword [ebp - 0x348], 1
jmp 0x418943
mov dword [ebp - 0x348], 0
mov dl, byte [ebp - 0x348]
mov byte [ebp - 0x33d], dl
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x33c]
and eax, 2
je 0x418973
and dword [ebp - 0x33c], 0xfffffffd
lea ecx, [ebp - 0x2a8]
call fcn.00403030
movzx ecx, byte [ebp - 0x33d]
test ecx, ecx
je 0x418a69
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x308]
push eax
call fcn.00409530
add esp, 8
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
mov byte [ebp - 4], 0xb
push 0x71dcf4
mov edx, dword [ebp - 0x368]
push edx
lea eax, [ebp - 0x290]
push eax
call fcn.0040db20
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x308]
call fcn.00403030
lea ecx, [ebp - 0x290]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418a5e
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040cf70
mov edx, dword [ebp - 0x33c]
or edx, 1
mov dword [ebp - 0x33c], edx
lea ecx, [ebp - 0x290]
call fcn.00403030
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00403030
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x260]
call fcn.00403030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00403030
mov eax, dword [ebp + 8]
jmp 0x418bdd
lea ecx, [ebp - 0x290]
call fcn.00403030
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004ded70
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x418ac4
push 0
push 0x23
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x418ac4
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418afb
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x320]
call fcn.00403090
mov dword [ebp - 0x36c], eax
mov edx, dword [ebp - 0x36c]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406030
lea ecx, [ebp - 0x320]
call fcn.00403030
jmp 0x418b0d
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406000
push str.AKPlatform
lea ecx, [ebp - 0x230]
call fcn.0040cf50
lea ecx, [ebp - 0x230]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418b7d
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x338]
push edx
call fcn.00409530
add esp, 8
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x374], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x374]
push ecx
call fcn.00409210
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x338]
call fcn.00403030
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040cf70
mov eax, dword [ebp - 0x33c]
or eax, 1
mov dword [ebp - 0x33c], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00403030
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x260]
call fcn.00403030
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00403030
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 4