Function at 0x40ca20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443969
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x78], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x80], ebx
je 0x40caa0
cmp dword [edi + 0x14], 8
jb 0x40ca6a
mov eax, dword [edi]
jmp 0x40ca6c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x40caa0
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov ecx, ebx
mov word [ebx], ax
call fcn.00402ff0
jmp 0x40cd4a
cmp byte [edi + 0x108], 0
je 0x40cbcf
cmp dword [edi + 0x100], 0
je 0x40cbcf
call fcn.00411630
test eax, eax
je 0x40cb4b
lea ecx, [ebp - 0x74]
call fcn.0040b3f0
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040af20
mov byte [ebp - 4], 2
lea ecx, [edi + 0xf0]
push ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.004084b0
add esp, 4
mov byte [ebp - 4], 3
push esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00408430
add esp, 4
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.00402740
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00402780
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00402780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402780
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00402780
jmp 0x40cd2c
lea ecx, [ebp - 0x44]
call fcn.0040b640
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.0040b120
mov byte [ebp - 4], 6
lea ecx, [edi + 0xf0]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.004084b0
add esp, 4
mov byte [ebp - 4], 7
push esi
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.00408430
add esp, 4
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.00402740
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.00402780
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00402780
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00402780
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00402780
jmp 0x40cd2c
push str.Local_AppData
lea ecx, [ebp - 0x44]
call fcn.004026b0
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x7c], SysStringLen
call fcn.0040a500
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d4e0
mov esi, eax
mov byte [ebp - 4], 0xb
cmp edi, esi
je 0x40cc3e
cmp dword [edi + 0x14], 8
jb 0x40cc23
push dword [edi]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov ecx, edi
mov word [edi], ax
call fcn.00402d10
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x48], 8
jb 0x40cc53
push dword [ebp - 0x5c]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 9
cmp dword [ebp - 0x18], 8
jb 0x40cc7c
push dword [ebp - 0x2c]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x30], 8
jb 0x40cca4
push dword [ebp - 0x44]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp dword [edi + 0x10], eax
jne 0x40cd2c
push 0x4492b0
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d6a0
mov esi, eax
mov dword [ebp - 4], 0xc
cmp edi, esi
je 0x40cd03
cmp dword [edi + 0x14], 8
jb 0x40cce8
push dword [edi]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov ecx, edi
mov word [edi], ax
call fcn.00402d10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x40cd18
push dword [ebp - 0x2c]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push edi
mov ecx, ebx
mov word [ebx], ax
call fcn.00402ff0
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret 4