Function at 0x451f40
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564096
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
mov eax, dword [0x5b63ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], edx
mov edi, ecx
mov esi, dword [ebx + 8]
push edi
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4523a0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x451fb5
mov eax, dword [esi]
push 0xb8
mov dword [esi + 0x10], 0
mov byte [eax], 0
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.005279e0
add esp, 0xc
mov dword [ebp - 0xd0], 0x5970c4
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc0]
push 0
xorps xmm0, xmm0
mov dword [ebp - 0xd4], 1
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x64], 0x58
movlpd qword [ebp - 0xc8], xmm0
call fcn.00459170
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xc0]
call fcn.00458c80
push 0x20
push 0x21
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 3
call fcn.00458b90
test eax, eax
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
jne 0x452096
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x4520a5
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00413280
mov ecx, dword [ebp - 0xd0]
mov esi, 5
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xc4], 6
je 0x452138
mov eax, esi
dec esi
test eax, eax
jle 0x452138
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x20
push 0x21
push edi
lea ecx, [ebp - 0xc0]
call fcn.00458b90
test eax, eax
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
jne 0x452110
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x45211f
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00413280
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xc4], 6
jne 0x4520c3
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xc4], 6
jne 0x452391
push 2
sub esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00458050
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x98]
test ecx, ecx
je 0x45217e
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00458e40
mov byte [ebp - 0xe0], al
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xc4], 6
jne 0x4521d1
push ecx
mov ecx, dword [ebp + ecx - 0x98]
lea eax, [ebp - 0x100]
push 1
sub esp, 8
push eax
call fcn.00458e20
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xd0]
jmp 0x4521f3
xorps xmm0, xmm0
mov dword [ebp - 0x100], 0xffffffff
mov dword [ebp - 0xfc], 0xffffffff
movups xmmword [ebp - 0xf8], xmm0
mov byte [ebp - 4], 7
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x98]
test ecx, ecx
je 0x452206
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x100]
add eax, dword [ebp - 0xf8]
mov dword [ebp - 0xd4], eax
test eax, eax
jle 0x452319
lea esi, [eax + 1]
push esi
call fcn.004eaf7f
add esp, 4
mov edi, eax
mov dword [ebp - 0xe0], edi
push esi
push 0
push edi
call fcn.005279e0
add esp, 0xc
lea ecx, [ebp - 0xd0]
push 0
sub esp, 8
call fcn.00458050
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd0]
cdq
push edx
push eax
push edi
call fcn.00458150
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xc4], 6
jne 0x452307
push edi
lea ecx, [ebp - 0x100]
call fcn.00428a40
push dword [ebp - 0xd8]
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 9
push dword [ebp - 0xdc]
push eax
call fcn.00471bf0
mov byte [ebp - 4], 3
add esp, 0xc
mov edx, dword [ebp - 0xec]
mov esi, eax
cmp edx, 0x10
jb 0x4522eb
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4522e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4523be
push edx
push ecx
call fcn.004eaf71
add esp, 8
push dword [ebp - 0xe0]
xor edi, edi
mov eax, 1
test esi, esi
cmovne edi, eax
call fcn.004eafab
add esp, 4
jmp 0x45231e
push dword [ebp - 0xe0]
xor edi, edi
call fcn.004eafab
add esp, 4
jmp 0x45231e
mov edi, 1
cmp dword [ebp - 0x74], 0
lea esi, [ebp - 0xc0]
jne 0x45232e
xor esi, esi
jmp 0x452352
lea ecx, [ebp - 0xc0]
call fcn.004589d0
push dword [ebp - 0x74]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.00531049
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0xc0]
call fcn.00458a90
test esi, esi
jne 0x452393
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
xor edx, edx
push esi
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx + 0x38], edx
sete dl
lea edx, [edx*4 + 2]
or edx, dword [ecx + 0xc]
push edx
call fcn.00413280
jmp 0x452393
xor edi, edi
lea ecx, [ebp - 0xd0]
call fcn.004523d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ea9ac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0052f67b
int3