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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ceea
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5b627c]
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 0x456d45
cmp dword [ebx + 0x10], 0
je 0x456d45
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4564ad
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456d45
push 0x570d80
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00454e10
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e0], 0x570d70
mov dword [ebp - 0x1d0], 0x570d78
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.0045e100
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.004554b0
mov dword [ebp - 0x120], 0x570d70
mov dword [ebp - 0x110], 0x570d78
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.0045e100
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.004554b0
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov byte [ebp - 4], 0xe
jb 0x4566ab
mov eax, dword [ebx]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0045e2a0
test eax, eax
mov edi, 4
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
jne 0x456702
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 0x456d64
jmp 0x456739
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 0x456739
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0041d4d0
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x456d90
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.0045e2a0
test eax, eax
mov eax, dword [ebp - 0x120]
jne 0x4567a3
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 0x4567db
test cl, 4
je 0x456d70
mov esi, str.ios_base::badbit_set
jmp 0x456d80
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 0x4567db
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0041d4d0
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x456d90
cmp dword [ebp - 0x17c], 0
je 0x456af0
cmp dword [ebp - 0xbc], 0
je 0x456af0
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.004550c0
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
jne 0x4569b0
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.0045e5c0
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x4569b0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x45686f
mov eax, dword [esi]
push edi
push dword [ebp - 0x38]
push dword [esi + 0x10]
push eax
call fcn.00405170
add esp, 0x10
lea ecx, [ebp - 0x110]
push 0
push edi
push dword [ebp - 0x38]
call fcn.0045ed70
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xd8], 0
je 0x456985
mov ecx, dword [ebp + ecx - 0xd8]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x4568c6
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 0x4568f7
mov ecx, dword [ebp + ecx - 0xd4]
test ecx, ecx
je 0x4568f7
lea edx, [ebp - 0x110]
cmp ecx, edx
je 0x4568f7
call fcn.0045dfc0
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 0x45694c
mov ecx, dword [ebp + ecx - 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x45694c
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 0x456a0a
mov byte [ebp - 4], 0x12
call fcn.00467353
test al, al
jne 0x456964
lea ecx, [ebp - 0x110]
call fcn.0041bdd0
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 0x456981
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.0050fe00
mov eax, dword [ebp - 0x1e0]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
je 0x456840
lea ecx, [ebp - 0x108]
call fcn.0045dbb0
test eax, eax
jne 0x456a38
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 0x456a38
test cl, 4
je 0x456d70
mov esi, str.ios_base::badbit_set
jmp 0x456d80
test cl, 4
je 0x456a1e
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x60]
push 1
jmp 0x456d85
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 0x456d85
lea ecx, [ebp - 0x1c8]
call fcn.0045dbb0
test eax, eax
jne 0x456a92
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 0x456a92
test cl, 4
je 0x456d70
mov esi, str.ios_base::badbit_set
jmp 0x456d80
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x456a9c
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x456b13
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x456af0
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x456ad1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456da6
push edx
push ecx
call fcn.00465e7d
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x120]
call fcn.00455860
lea ecx, [ebp - 0x1e0]
call fcn.00455860
lea ecx, [ebp - 0x28]
call fcn.004070f0
jmp 0x456d45
cmp dword [ebx + 0x14], 8
jb 0x456b1b
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 0x456aaa
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x456b87
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x456b68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456da6
push edx
push ecx
call fcn.00465e7d
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.00455620
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.004680e6
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.00455620
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.004680e6
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x456d45
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x456d3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456da6
push edx
push ecx
call fcn.00465e7d
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.00465d1b
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x456d70
mov esi, str.ios_base::badbit_set
jmp 0x456d80
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.0041d4d0
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00406c20
push 0x5a1790
lea eax, [ebp - 0x58]
push eax
call fcn.0051040c
call fcn.005143e9
int3