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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5644aa
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5be26c]
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 0x45ccd5
cmp dword [ebx + 0x10], 0
je 0x45ccd5
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x45c43d
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ccd5
push 0x577bb8
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0045ada0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e0], 0x577ba8
mov dword [ebp - 0x1d0], 0x577bb0
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.00464080
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.0045b440
mov dword [ebp - 0x120], 0x577ba8
mov dword [ebp - 0x110], 0x577bb0
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.00464080
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.0045b440
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov byte [ebp - 4], 0xe
jb 0x45c63b
mov eax, dword [ebx]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00464220
test eax, eax
mov edi, 4
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
jne 0x45c692
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 0x45ccf4
jmp 0x45c6c9
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 0x45c6c9
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00422130
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x45cd20
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.00464220
test eax, eax
mov eax, dword [ebp - 0x120]
jne 0x45c733
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 0x45c76b
test cl, 4
je 0x45cd00
mov esi, str.ios_base::badbit_set
jmp 0x45cd10
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 0x45c76b
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00422130
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x45cd20
cmp dword [ebp - 0x17c], 0
je 0x45ca80
cmp dword [ebp - 0xbc], 0
je 0x45ca80
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.0045b050
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
jne 0x45c940
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.00464540
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x45c940
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x45c7ff
mov eax, dword [esi]
push edi
push dword [ebp - 0x38]
push dword [esi + 0x10]
push eax
call fcn.004095f0
add esp, 0x10
lea ecx, [ebp - 0x110]
push 0
push edi
push dword [ebp - 0x38]
call fcn.00464cf0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xd8], 0
je 0x45c915
mov ecx, dword [ebp + ecx - 0xd8]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x45c856
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 0x45c887
mov ecx, dword [ebp + ecx - 0xd4]
test ecx, ecx
je 0x45c887
lea edx, [ebp - 0x110]
cmp ecx, edx
je 0x45c887
call fcn.00463f40
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 0x45c8dc
mov ecx, dword [ebp + ecx - 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x45c8dc
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 0x45c99a
mov byte [ebp - 4], 0x12
call fcn.0046d7a3
test al, al
jne 0x45c8f4
lea ecx, [ebp - 0x110]
call fcn.00420a30
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 0x45c911
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.00516260
mov eax, dword [ebp - 0x1e0]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
je 0x45c7d0
lea ecx, [ebp - 0x108]
call fcn.00463b30
test eax, eax
jne 0x45c9c8
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 0x45c9c8
test cl, 4
je 0x45cd00
mov esi, str.ios_base::badbit_set
jmp 0x45cd10
test cl, 4
je 0x45c9ae
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x60]
push 1
jmp 0x45cd15
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 0x45cd15
lea ecx, [ebp - 0x1c8]
call fcn.00463b30
test eax, eax
jne 0x45ca22
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 0x45ca22
test cl, 4
je 0x45cd00
mov esi, str.ios_base::badbit_set
jmp 0x45cd10
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x45ca2c
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45caa3
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x45ca80
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x45ca61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd36
push edx
push ecx
call fcn.0046c2cf
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x120]
call fcn.0045b7f0
lea ecx, [ebp - 0x1e0]
call fcn.0045b7f0
lea ecx, [ebp - 0x28]
call fcn.0040bbd0
jmp 0x45ccd5
cmp dword [ebx + 0x14], 8
jb 0x45caab
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 0x45ca3a
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x45cb17
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x45caf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd36
push edx
push ecx
call fcn.0046c2cf
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.0045b5b0
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.0046e536
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.0045b5b0
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.0046e536
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x45ccd5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45cccb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cd36
push edx
push ecx
call fcn.0046c2cf
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.0046c16d
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x45cd00
mov esi, str.ios_base::badbit_set
jmp 0x45cd10
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.00422130
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0040b700
push 0x5a96c4
lea eax, [ebp - 0x58]
push eax
call fcn.0051686c
call fcn.0051a7fc
int3