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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560dba
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5ba278]
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 0x459d95
cmp dword [ebx + 0x10], 0
je 0x459d95
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4594fd
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459d95
push 0x573ba8
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004579b0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e0], 0x573b98
mov dword [ebp - 0x1d0], 0x573ba0
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.00460fb0
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.00458050
mov dword [ebp - 0x120], 0x573b98
mov dword [ebp - 0x110], 0x573ba0
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.00460fb0
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.00458050
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov byte [ebp - 4], 0xe
jb 0x4596fb
mov eax, dword [ebx]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x1c8]
call fcn.00461150
test eax, eax
mov edi, 4
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
jne 0x459752
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 0x459db4
jmp 0x459789
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 0x459789
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0041b1a0
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x459de0
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.00461150
test eax, eax
mov eax, dword [ebp - 0x120]
jne 0x4597f3
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 0x45982b
test cl, 4
je 0x459dc0
mov esi, str.ios_base::badbit_set
jmp 0x459dd0
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 0x45982b
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0041b1a0
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x459de0
cmp dword [ebp - 0x17c], 0
je 0x459b40
cmp dword [ebp - 0xbc], 0
je 0x459b40
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.00457c60
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
jne 0x459a00
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.00461470
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x459a00
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4598bf
mov eax, dword [esi]
push edi
push dword [ebp - 0x38]
push dword [esi + 0x10]
push eax
call fcn.00403930
add esp, 0x10
lea ecx, [ebp - 0x110]
push 0
push edi
push dword [ebp - 0x38]
call fcn.00461c20
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xd8], 0
je 0x4599d5
mov ecx, dword [ebp + ecx - 0xd8]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x459916
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 0x459947
mov ecx, dword [ebp + ecx - 0xd4]
test ecx, ecx
je 0x459947
lea edx, [ebp - 0x110]
cmp ecx, edx
je 0x459947
call fcn.00460e70
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 0x45999c
mov ecx, dword [ebp + ecx - 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x45999c
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 0x459a5a
mov byte [ebp - 4], 0x12
call fcn.0046b053
test al, al
jne 0x4599b4
lea ecx, [ebp - 0x110]
call fcn.00419aa0
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 0x4599d1
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.00513be0
mov eax, dword [ebp - 0x1e0]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
je 0x459890
lea ecx, [ebp - 0x108]
call fcn.00460a60
test eax, eax
jne 0x459a88
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 0x459a88
test cl, 4
je 0x459dc0
mov esi, str.ios_base::badbit_set
jmp 0x459dd0
test cl, 4
je 0x459a6e
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x60]
push 1
jmp 0x459dd5
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 0x459dd5
lea ecx, [ebp - 0x1c8]
call fcn.00460a60
test eax, eax
jne 0x459ae2
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 0x459ae2
test cl, 4
je 0x459dc0
mov esi, str.ios_base::badbit_set
jmp 0x459dd0
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x459aec
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x459b63
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x459b40
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x459b21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459df6
push edx
push ecx
call fcn.00469b7f
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x120]
call fcn.004588b0
lea ecx, [ebp - 0x1e0]
call fcn.004588b0
lea ecx, [ebp - 0x28]
call fcn.00405ea0
jmp 0x459d95
cmp dword [ebx + 0x14], 8
jb 0x459b6b
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 0x459afa
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x459bd7
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x459bb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459df6
push edx
push ecx
call fcn.00469b7f
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.004581c0
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.0046bde6
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.004581c0
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.0046bde6
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x459d95
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459d8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459df6
push edx
push ecx
call fcn.00469b7f
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.00469a1d
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x459dc0
mov esi, str.ios_base::badbit_set
jmp 0x459dd0
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.0041b1a0
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.004059d0
push 0x5a5664
lea eax, [ebp - 0x58]
push eax
call fcn.005141ec
call fcn.005181c9
int3