Function at 0x40aef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6fb1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00403200
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.00413650
mov byte [ebp - 4], 1
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x40af67
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049b30a
add esp, 4
xor edi, edi
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x1c], edi
je 0x40affd
push 0xf
mov eax, str.chaichuan_app_
lea ecx, [ebp - 0x2c]
call fcn.004137b0
cmp dword [ebp - 0x1c], edi
je 0x40affd
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40af9d
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x40affd
mov dword [ebx + 0x10], edi
xor eax, eax
mov dword [ebx + 0x14], 7
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], ax
call fcn.00413650
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x40afe4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
jmp 0x40b111
lea ecx, [ebp - 0x48]
call fcn.00480150
mov byte [ebp - 4], 3
push 0x4cccdc
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004191b0
add esp, 0xc
mov byte [ebp - 4], 4
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.00413650
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], 8
jb 0x40b03f
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049b30a
add esp, 4
mov esi, 7
xor edi, edi
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x40b068
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049b30a
add esp, 4
push 0xf
push str.chaichuan_app_
lea edx, [ebp - 0x2c]
xor ecx, ecx
push edx
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
call fcn.00413a10
cmp eax, 0xffffffff
je 0x40b0a5
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], edi
xor eax, eax
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], ax
call fcn.00413650
jmp 0x40afc7
call fcn.00412630
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.00481c90
mov byte [ebp - 4], 5
push str.chaichuan_app_
push eax
push ebx
call fcn.004191b0
add esp, 0xc
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x40b0e4
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x18], 8
jb 0x40b105
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
mov eax, ebx
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.0049b315
mov esp, ebp
pop ebp
ret