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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d587
mov eax, dword fs:[0]
push eax
sub esp, 0x320
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 - 0x310], ecx
mov dword [ebp - 0x2f4], 0
push 0x71dd2c
lea ecx, [ebp - 0x230]
call fcn.00403090
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004ded70
add esp, 0xc
push 0
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x418eb6
push 0
push 0x1a
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x418f2b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.00403090
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], ecx
mov byte [ebp - 4], 1
push 0x71dd30
mov edx, dword [ebp - 0x2fc]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.0040db20
add esp, 0xc
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406030
lea ecx, [ebp - 0x248]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00403030
lea ecx, [ebp - 0x230]
call fcn.00403010
movzx edx, al
test edx, edx
je 0x418fcc
lea eax, [ebp - 0x218]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x418fcc
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x290]
call fcn.00403090
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x308], edx
mov byte [ebp - 4], 2
push str.AKLauncher
mov eax, dword [ebp - 0x308]
push eax
lea ecx, [ebp - 0x278]
push ecx
call fcn.0040db20
add esp, 0xc
mov dword [ebp - 0x30c], eax
mov edx, dword [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406030
lea ecx, [ebp - 0x278]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.00403030
lea ecx, [ebp - 0x230]
call fcn.00403010
movzx eax, al
test eax, eax
je 0x419092
lea ecx, [ebp - 0x2d8]
push ecx
mov ecx, dword [ebp - 0x310]
call fcn.00418cd0
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x318], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.00409530
add esp, 8
mov dword [ebp - 0x31c], eax
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x320], edx
mov byte [ebp - 4], 4
push str.CacheLauncher
mov eax, dword [ebp - 0x320]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
call fcn.0040db20
add esp, 0xc
mov dword [ebp - 0x324], eax
mov edx, dword [ebp - 0x324]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406030
lea ecx, [ebp - 0x2a8]
call fcn.00403030
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c0]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
call fcn.00403030
lea ecx, [ebp - 0x230]
call fcn.00403020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4190f2
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2f0]
push ecx
call fcn.00409530
add esp, 8
mov dword [ebp - 0x328], eax
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x32c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x32c]
push eax
call fcn.00409210
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2f0]
call fcn.00403030
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040cf70
mov edx, dword [ebp - 0x2f4]
or edx, 1
mov dword [ebp - 0x2f4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
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