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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b41a
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x5c524c]
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 0x461cc5
cmp dword [ebx + 0x10], 0
je 0x461cc5
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x46142d
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461cc5
push 0x57e734
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0045efc0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e0], 0x57e724
mov dword [ebp - 0x1d0], 0x57e72c
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.00468f30
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.0045f660
mov dword [ebp - 0x120], 0x57e724
mov dword [ebp - 0x110], 0x57e72c
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.00468f30
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.0045f660
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov byte [ebp - 4], 0xe
jb 0x46162b
mov eax, dword [ebx]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x1c8]
call fcn.004690d0
test eax, eax
mov edi, 4
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
jne 0x461682
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 0x461ce4
jmp 0x4616b9
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 0x4616b9
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0041da00
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x461d10
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.004690d0
test eax, eax
mov eax, dword [ebp - 0x120]
jne 0x461723
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 0x46175b
test cl, 4
je 0x461cf0
mov esi, str.ios_base::badbit_set
jmp 0x461d00
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 0x46175b
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0041da00
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x461d10
cmp dword [ebp - 0x17c], 0
je 0x461a70
cmp dword [ebp - 0xbc], 0
je 0x461a70
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.0045f270
mov eax, dword [ebp - 0x1e0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
jne 0x461930
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.004693f0
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x461930
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4617ef
mov eax, dword [esi]
push edi
push dword [ebp - 0x38]
push dword [esi + 0x10]
push eax
call fcn.00405250
add esp, 0x10
lea ecx, [ebp - 0x110]
push 0
push edi
push dword [ebp - 0x38]
call fcn.00469ba0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xd8], 0
je 0x461905
mov ecx, dword [ebp + ecx - 0xd8]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x461846
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 0x461877
mov ecx, dword [ebp + ecx - 0xd4]
test ecx, ecx
je 0x461877
lea edx, [ebp - 0x110]
cmp ecx, edx
je 0x461877
call fcn.00468de0
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 0x4618cc
mov ecx, dword [ebp + ecx - 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x4618cc
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 0x46198a
mov byte [ebp - 4], 0x12
call fcn.00473cc3
test al, al
jne 0x4618e4
lea ecx, [ebp - 0x110]
call fcn.0041c290
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 0x461901
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.0051e3d0
mov eax, dword [ebp - 0x1e0]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1d4], 1
je 0x4617c0
lea ecx, [ebp - 0x108]
call fcn.004689d0
test eax, eax
jne 0x4619b8
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 0x4619b8
test cl, 4
je 0x461cf0
mov esi, str.ios_base::badbit_set
jmp 0x461d00
test cl, 4
je 0x46199e
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x60]
push 1
jmp 0x461d05
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 0x461d05
lea ecx, [ebp - 0x1c8]
call fcn.004689d0
test eax, eax
jne 0x461a12
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 0x461a12
test cl, 4
je 0x461cf0
mov esi, str.ios_base::badbit_set
jmp 0x461d00
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x461a1c
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x461a93
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x461a70
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x461a51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461d26
push edx
push ecx
call fcn.004727ef
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x120]
call fcn.004607e0
lea ecx, [ebp - 0x1e0]
call fcn.004607e0
lea ecx, [ebp - 0x28]
call fcn.00407920
jmp 0x461cc5
cmp dword [ebx + 0x14], 8
jb 0x461a9b
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 0x461a2a
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x461b07
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x461ae8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461d26
push edx
push ecx
call fcn.004727ef
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.0045f7d0
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.00475781
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.0045f7d0
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.00475781
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x461cc5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461cbb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461d26
push edx
push ecx
call fcn.004727ef
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.0047268d
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x461cf0
mov esi, str.ios_base::badbit_set
jmp 0x461d00
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.0041da00
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00407450
push 0x5b05ac
lea eax, [ebp - 0x58]
push eax
call fcn.0051e9dc
call fcn.005229b9
int3