Function at 0x451c50
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a05db
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xb4
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x50]
call fcn.00401cb0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 8]
sub ecx, 4
call fcn.00451930
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401d40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00401d20
cmp dword [ebp + 0x14], 0
je 0x451cfd
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401d20
mov eax, dword [ebp - 0x78]
jmp 0x451f99
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
sub ecx, 4
call fcn.004521e0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
sub ecx, 4
call fcn.004522c0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
sub ecx, 4
call fcn.004523a0
jmp 0x451d4a
mov dword [ebp - 4], 0
jmp 0x451d6a
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x38
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.00453ab0
add esp, 0xc
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xc0]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x74
call fcn.00401d40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.00401d20
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
sub ecx, 4
call fcn.00451ab0
movzx ecx, al
test ecx, ecx
je 0x451e0d
mov edx, dword [ebp + 8]
add edx, 0x74
push edx
call fcn.00453bc0
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401d20
mov eax, dword [ebp - 0x9c]
jmp 0x451f99
mov ecx, dword [ebp + 8]
add ecx, 0x74
call fcn.004053d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451e5b
push str.file_is_exists___________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401d20
mov eax, dword [ebp - 0xa0]
jmp 0x451f99
mov edx, dword [ebp + 8]
add edx, 0x74
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.004539f0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
push ecx
call fcn.00453bc0
add esp, 4
mov edx, dword [ebp + 8]
add edx, 0x74
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.00453c60
add esp, 8
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0x54]
call fcn.00452f60
movzx ecx, al
test ecx, ecx
je 0x451ef8
mov ecx, dword [ebp + 8]
add ecx, 0x74
call fcn.004525f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410350
add esp, 4
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00451130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401d20
mov eax, dword [ebp - 0xa4]
jmp 0x451f99
push 0xc
call fcn.004b9286
add esp, 4
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x451f28
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0xac]
call fcn.00453710
mov dword [ebp - 0xc4], eax
jmp 0x451f32
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004527d0
lea ecx, [ebp - 0x14]
call fcn.004527f0
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0x14]
call fcn.00451130
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.00451130
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00401d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401d20
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret 0x10