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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430279
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x442740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
lea ecx, [ebp - 0x290]
call fcn.0040fb40
xor eax, eax
mov dword [ebp - 4], 1
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0041d1e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x218], ax
jne 0x402710
xor ecx, ecx
jmp 0x40272f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402720
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00406150
push str.Setup_
mov edx, esi
mov dword [ebp - 0x2b0], 1
lea ecx, [ebp - 0x2a8]
call fcn.004044b0
add esp, 4
push str.BaiduEasyGame
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.004045a0
add esp, 4
push 0x43a4ec
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.004045a0
add esp, 4
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x230]
call fcn.00404640
add esp, 4
push 0x43a4ec
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x278]
call fcn.004045a0
mov edi, eax
add esp, 4
cmp esi, edi
je 0x4027f4
cmp dword [esi + 0x14], 8
jb 0x4027d9
push dword [esi]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00405c10
cmp dword [ebp - 0x264], 8
jb 0x40280b
push dword [ebp - 0x278]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp - 0x264], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
jb 0x40283f
push dword [ebp - 0x230]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x402873
push dword [ebp - 0x248]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4028a7
push dword [ebp - 0x260]
call fcn.0041ae15
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x294], 8
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
jb 0x4028df
push dword [ebp - 0x2a8]
call fcn.0041ae15
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4028e9
mov eax, dword [esi]
jmp 0x4028eb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402924
test al, 0x10
je 0x402924
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.00405dd0
call fcn.00413960
add esp, 0x18
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.00405dd0
call fcn.004137a0
add esp, 0x18
cmp dword [ebp - 0x27c], 8
jb 0x402964
push dword [ebp - 0x290]
call fcn.0041ae15
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ae1a
mov esp, ebp
pop ebp
ret