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

Disassembly:
mov eax, 0x4ae358
call fcn.004a8fb4
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00465533
test eax, eax
je 0x4638b4
lea ecx, [ebp - 0x14]
call fcn.00409e7e
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ebx, [esi + 0x570]
mov edi, ebx
call fcn.00406f98
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004079f6
lea eax, [ebp - 0x18]
push 0x4bae94
push eax
mov ecx, ebx
call fcn.00408a8a
lea ecx, [ebp - 0x14]
push 0x4ddf64
push ecx
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00408442
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.0046c78b
pop ecx
mov ecx, eax
call fcn.0046c7ff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004079f6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004079f6
jmp 0x4639cd
mov eax, dword [0x4dd02c]
mov ecx, 0x4dd02c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea eax, [ebp - 0x10]
call fcn.004084e0
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004635d4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00408442
pop ecx
pop ecx
mov esi, dword [ebp + 8]
lea edi, [esi + 0x570]
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], edi
call fcn.00406f98
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004079f6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004079f6
add esi, 0x550
call fcn.0046bafc
test eax, eax
je 0x4639b8
cmp dword [esi + 8], 0x100000
jb 0x4639b8
call fcn.0046bbab
test eax, eax
jne 0x46395d
mov ebx, esi
call fcn.0046bc03
test eax, eax
je 0x4639b8
push dword [edi]
mov ecx, esi
push 0
call fcn.0046b95e
lea eax, [ebp - 0x18]
push 0x4bae94
push eax
mov ecx, edi
call fcn.00408a8a
lea ecx, [ebp - 0x1c]
push 0x4ddf64
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00408442
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 7
call fcn.0046c78b
pop ecx
mov ecx, eax
call fcn.0046c7ff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004079f6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004079f6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004079f6
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edi, esi
call fcn.0046314d
push esi
call fcn.004636a0
lea eax, [ebp - 0x10]
push str._res
push eax
mov ecx, ebx
call fcn.00408a8a
pop ecx
pop ecx
mov dword [ebp - 4], 8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x463a1a
push dword [ebp - 0x10]
call fcn.00434a36
push eax
call fcn.00407e8c
call fcn.00434f94
mov ebx, eax
call fcn.00434fbf
call fcn.00461536
call fcn.0046187a
call fcn.00461a04
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004079f6
push 0
push 0x26
add esi, 0x53c
push 0x104
call fcn.00407b32
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x463a64
push eax
call fcn.0047acce
pop ecx
mov edx, esi
call fcn.00407aee
test edi, edi
jne 0x463a7a
push 0x4c0ed0
push esi
call fcn.00407e8c
push str.keniu_
push esi
call fcn.00408240
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x954]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.0040854a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4