Function at 0x40cd80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44380c
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 esi, ecx
mov dword [ebp - 0x78], esi
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x18]
mov dword [ebp - 0x7c], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x84], ebx
je 0x40ce09
cmp dword [edi + 0x14], 8
jb 0x40cdd3
mov eax, dword [edi]
jmp 0x40cdd5
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x40ce09
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 0x40d02f
cmp byte [esi + 0x108], 0
je 0x40ceb7
cmp dword [esi + 0x100], 0
je 0x40ceb7
call fcn.00411630
test eax, eax
je 0x40d011
lea ecx, [ebp - 0x74]
call fcn.0040b950
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.0040af20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x78]
add ecx, 0xf0
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
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 - 0x44]
call fcn.00402780
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00402780
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00402780
jmp 0x40d011
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x80], SysStringLen
call fcn.0040c160
mov esi, eax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.0040a500
mov byte [ebp - 4], 6
push ecx
push esi
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d4e0
mov esi, eax
mov byte [ebp - 4], 7
cmp edi, esi
je 0x40cf20
cmp dword [edi + 0x14], 8
jb 0x40cf05
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], 6
cmp dword [ebp - 0x48], 8
jb 0x40cf35
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], 5
cmp dword [ebp - 0x30], 8
jb 0x40cf5e
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
mov byte [ebp - 4], al
cmp dword [ebp - 0x18], 8
jb 0x40cf86
push dword [ebp - 0x2c]
call fcn.00423c7d
add esp, 4
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ecx + 0x28], eax
jne 0x40d011
push 0x4492c0
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d6a0
mov esi, eax
mov dword [ebp - 4], 8
cmp edi, esi
je 0x40cfe8
cmp dword [edi + 0x14], 8
jb 0x40cfcd
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 0x40cffd
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 - 0x7c], 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