Function at 0x451450
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5580aa
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5b228c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x29], 0
cmp dword [esi + 0x10], 0
je 0x451d45
cmp dword [ebx + 0x10], 0
je 0x451d45
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4514ad
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451d45
push 0x56c3e8
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0044fe10
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e0], 0x56c3d8
mov dword [ebp - 0x1d0], 0x56c3e0
push 0
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 2
push eax
lea ecx, [ebp - 0x168]
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x16c], 0x60
movlpd qword [ebp - 0x1d8], xmm0
call fcn.004591d0
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1d4], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1e4], eax
mov eax, dword [ebp - 0x1e0]
push 0
mov dword [ebp - 4], 6
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1e4], eax
lea ecx, [ebp - 0x1c8]
call fcn.004504b0
mov dword [ebp - 0x120], 0x56c3d8
mov dword [ebp - 0x110], 0x56c3e0
push 0
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0x22
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0xac], 0x60
movlpd qword [ebp - 0x118], xmm0
call fcn.004591d0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x124], eax
mov eax, dword [ebp - 0x120]
push 0
mov dword [ebp - 4], 0xd
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x124], eax
lea ecx, [ebp - 0x108]
call fcn.004504b0
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov byte [ebp - 4], 0xe
jb 0x4516ab
mov eax, dword [ebx]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00459370
test eax, eax
mov edi, 4
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
jne 0x451702
xor eax, eax
cmp dword [ebp + ecx - 0x1a8], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x1d4]
and eax, 0x17
mov dword [ebp + ecx - 0x1d4], eax
mov ecx, dword [ebp + ecx - 0x1d0]
and ecx, eax
jne 0x451d64
jmp 0x451739
xor edx, edx
mov eax, edi
cmp dword [ebp + ecx - 0x1a8], edx
cmovne eax, edx
mov dword [ebp + ecx - 0x1d4], eax
test dword [ebp + ecx - 0x1d0], eax
je 0x451739
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00418430
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x451d90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x40
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x108]
push 0x32
push eax
call fcn.00459370
test eax, eax
mov eax, dword [ebp - 0x120]
jne 0x4517a3
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xe8], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x114]
and eax, 0x17
mov dword [ebp + ecx - 0x114], eax
mov ecx, dword [ebp + ecx - 0x110]
and ecx, eax
je 0x4517db
test cl, 4
je 0x451d70
mov esi, str.ios_base::badbit_set
jmp 0x451d80
mov eax, dword [eax + 4]
xor ecx, ecx
cmp dword [ebp + eax - 0xe8], ecx
cmovne edi, ecx
mov dword [ebp + eax - 0x114], edi
test dword [ebp + eax - 0x110], edi
je 0x4517db
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00418430
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x451d90
cmp dword [ebp - 0x17c], 0
je 0x451af0
cmp dword [ebp - 0xbc], 0
je 0x451af0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x39]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x39], 0
push ecx
push 0x400
call fcn.004500c0
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
jne 0x4519b0
nop dword [eax + eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub ecx, eax
push 0
push ecx
push eax
lea ecx, [ebp - 0x1e0]
call fcn.00459690
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x4519b0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x45186f
mov eax, dword [esi]
push edi
push dword [ebp - 0x38]
push dword [esi + 0x10]
push eax
call fcn.00403060
add esp, 0x10
lea ecx, [ebp - 0x110]
push 0
push edi
push dword [ebp - 0x38]
call fcn.00459e40
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xd8], 0
je 0x451985
mov ecx, dword [ebp + ecx - 0xd8]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x4518c6
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
mov byte [ebp - 4], 0x10
cmp dword [ebp + ecx - 0x104], 0
jne 0x4518f7
mov ecx, dword [ebp + ecx - 0xd4]
test ecx, ecx
je 0x4518f7
lea edx, [ebp - 0x110]
cmp ecx, edx
je 0x4518f7
call fcn.00459090
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x104]
test eax, eax
sete byte [ebp - 0x40]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x45194c
mov ecx, dword [ebp + ecx - 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x45194c
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x104]
and eax, 0x13
or eax, 4
mov dword [ebp + ecx - 0x104], eax
mov ecx, dword [ebp + ecx - 0x100]
and ecx, eax
jne 0x451a0a
mov byte [ebp - 4], 0x12
call fcn.004625a3
test al, al
jne 0x451964
lea ecx, [ebp - 0x110]
call fcn.00416d30
mov eax, dword [ebp - 0x110]
mov byte [ebp - 4], 0x13
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0xd8]
test ecx, ecx
je 0x451981
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
push eax
push 0
push ecx
call fcn.0050b0c0
mov eax, dword [ebp - 0x1e0]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
je 0x451840
lea ecx, [ebp - 0x108]
call fcn.00458c80
test eax, eax
jne 0x451a38
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xe8], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x114]
and eax, 0x17
mov dword [ebp + ecx - 0x114], eax
mov ecx, dword [ebp + ecx - 0x110]
and ecx, eax
je 0x451a38
test cl, 4
je 0x451d70
mov esi, str.ios_base::badbit_set
jmp 0x451d80
test cl, 4
je 0x451a1e
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x60]
push 1
jmp 0x451d85
test cl, 2
mov eax, str.ios_base::eofbit_set
mov esi, str.ios_base::failbit_set
cmove esi, eax
lea eax, [ebp - 0x60]
push 1
jmp 0x451d85
lea ecx, [ebp - 0x1c8]
call fcn.00458c80
test eax, eax
jne 0x451a92
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1a8], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x1d4]
and eax, 0x17
mov dword [ebp + ecx - 0x1d4], eax
mov ecx, dword [ebp + ecx - 0x1d0]
and ecx, eax
je 0x451a92
test cl, 4
je 0x451d70
mov esi, str.ios_base::badbit_set
jmp 0x451d80
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x451a9c
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x451b13
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x451af0
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x451ad1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451da6
push edx
push ecx
call fcn.004610ef
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x120]
call fcn.00450860
lea ecx, [ebp - 0x1e0]
call fcn.00450860
lea ecx, [ebp - 0x28]
call fcn.00404f80
jmp 0x451d45
cmp dword [ebx + 0x14], 8
jb 0x451b1b
mov ebx, dword [ebx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x38]
test eax, eax
je 0x451aaa
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x451b87
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x451b68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451da6
push edx
push ecx
call fcn.004610ef
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x124], eax
lea ecx, [ebp - 0x108]
call fcn.00450620
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x124], eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x124], eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0x14
push eax
mov dword [ebp - 0xa8], vtable.std::ios_base.0
call fcn.00463336
mov eax, dword [ebp - 0x1e0]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1e4], eax
lea ecx, [ebp - 0x1c8]
call fcn.00450620
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1e4], eax
mov eax, dword [ebp - 0x1d0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1d4], eax
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1e4], eax
lea eax, [ebp - 0x168]
mov byte [ebp - 4], 0x15
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00463336
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x451d45
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451d3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451da6
push edx
push ecx
call fcn.004610ef
add esp, 8
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460f8d
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x451d70
mov esi, str.ios_base::badbit_set
jmp 0x451d80
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
push 1
lea eax, [ebp - 0x44]
push eax
call fcn.00418430
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00404ab0
push 0x59ce54
lea eax, [ebp - 0x58]
push eax
call fcn.0050b6cc
call fcn.0050f6a9
int3