Function at 0x4511a0
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 0x5632d6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
mov eax, dword [0x5b53ec]
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 0x451600
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x451215
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.00526d00
add esp, 0xc
mov dword [ebp - 0xd0], 0x5961ac
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.004583d0
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.00457ee0
push 0x20
push 0x21
push edi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 3
call fcn.00457df0
test eax, eax
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
jne 0x4512f6
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x451305
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 0x451398
mov eax, esi
dec esi
test eax, eax
jle 0x451398
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x20
push 0x21
push edi
lea ecx, [ebp - 0xc0]
call fcn.00457df0
test eax, eax
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 0xd0]
push 0
mov eax, dword [eax + 4]
jne 0x451370
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
jmp 0x45137f
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 0x451323
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xc4], 6
jne 0x4515f1
push 2
sub esp, 8
lea ecx, [ebp - 0xd0]
call fcn.004572b0
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 0x4513de
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.004580a0
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 0x451431
push ecx
mov ecx, dword [ebp + ecx - 0x98]
lea eax, [ebp - 0x100]
push 1
sub esp, 8
push eax
call fcn.00458080
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xd0]
jmp 0x451453
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 0x451466
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 0x451579
lea esi, [eax + 1]
push esi
call fcn.004ea2af
add esp, 4
mov edi, eax
mov dword [ebp - 0xe0], edi
push esi
push 0
push edi
call fcn.00526d00
add esp, 0xc
lea ecx, [ebp - 0xd0]
push 0
sub esp, 8
call fcn.004572b0
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd0]
cdq
push edx
push eax
push edi
call fcn.004573b0
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xc4], 6
jne 0x451567
push edi
lea ecx, [ebp - 0x100]
call fcn.00428a30
push dword [ebp - 0xd8]
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 9
push dword [ebp - 0xdc]
push eax
call fcn.00470e50
mov byte [ebp - 4], 3
add esp, 0xc
mov edx, dword [ebp - 0xec]
mov esi, eax
cmp edx, 0x10
jb 0x45154b
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x451541
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45161e
push edx
push ecx
call fcn.004ea2a1
add esp, 8
push dword [ebp - 0xe0]
xor edi, edi
mov eax, 1
test esi, esi
cmovne edi, eax
call fcn.004ea2db
add esp, 4
jmp 0x45157e
push dword [ebp - 0xe0]
xor edi, edi
call fcn.004ea2db
add esp, 4
jmp 0x45157e
mov edi, 1
cmp dword [ebp - 0x74], 0
lea esi, [ebp - 0xc0]
jne 0x45158e
xor esi, esi
jmp 0x4515b2
lea ecx, [ebp - 0xc0]
call fcn.00457c30
push dword [ebp - 0x74]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.00530369
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0xc0]
call fcn.00457cf0
test esi, esi
jne 0x4515f3
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 0x4515f3
xor edi, edi
lea ecx, [ebp - 0xd0]
call fcn.00451630
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.004e9cdc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0052e99b
int3