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

Disassembly:
push 0x2d8
mov eax, 0x45fde1
call fcn.00431a71
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x466a0c
mov ecx, esi
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 0x2e0], ebx
call fcn.00402e62
xor eax, eax
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push ebx
inc edi
push eax
mov dword [ebp - 0x2e0], edi
call fcn.004320e0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, 8
ja case.default.0x40864e
jmp dword [eax*4 + 0x40893d]
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402e3b
jmp case.default.0x40864e
push ebx
lea eax, [ebp - 0x2dc]
push ebx
push eax
call fcn.0040513b
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00402ec5
lea ecx, [ebp - 0x2dc]
jmp 0x4088fe
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.004085e9
push str.Version
lea eax, [ebp - 0x2c0]
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.0040513b
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 3
call fcn.0040674a
add esp, 0x1c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.004032b6
push ebx
push edi
lea ecx, [ebp - 0x2c0]
call fcn.0040318e
jmp 0x4088f8
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SogouMiniGame
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x408675
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
jmp 0x40871d
lea eax, [ebp - 0x234]
push 4
push eax
call fcn.004085e9
pop ecx
pop ecx
mov dword [ebp - 4], 4
xor eax, eax
push 0x46c040
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x290], 7
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x2a4], ax
call fcn.00402e3b
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 5
call fcn.0040674a
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a4]
jmp 0x4088e0
lea eax, [ebp - 0x234]
push 4
push eax
call fcn.004085e9
pop ecx
pop ecx
mov dword [ebp - 4], 6
xor eax, eax
push str.Temp
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
call fcn.00402e3b
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 7
call fcn.0040674a
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x288]
jmp 0x4088e0
lea eax, [ebp - 0x234]
push 4
push eax
call fcn.004085e9
pop ecx
pop ecx
mov dword [ebp - 4], 8
xor eax, eax
push str.Image
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
call fcn.00402e3b
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 9
call fcn.0040674a
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x250]
jmp 0x4088e0
lea eax, [ebp - 0x234]
push 4
push eax
call fcn.004085e9
pop ecx
pop ecx
mov dword [ebp - 4], 0xa
xor eax, eax
push 0x46c060
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], ax
call fcn.00402e3b
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040674a
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x26c]
push ebx
push edi
call fcn.0040318e
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.004032b6
lea ecx, [ebp - 0x234]
push ebx
push edi
mov byte [ebp - 4], bl
call fcn.0040318e
cmp dword [esi + 0x10], ebx
je 0x408935
cmp dword [esi + 0x14], 8
jb 0x408917
mov eax, dword [esi]
jmp 0x408919
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408935
cmp dword [esi + 0x14], 8
jb 0x40892e
mov ecx, dword [esi]
jmp 0x408930
mov ecx, esi
call fcn.00401d2f
mov eax, esi
call fcn.00431af4
ret