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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539984
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x59024c]
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]
xor bl, bl
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x29], bl
cmp dword [esi + 0x10], 0
je 0x43ac8b
cmp dword [edi + 0x10], 0
je 0x43ac8b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43a40e
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ac8b
push 0x54d400
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00438ce0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x1cc], 0x54d3f0
mov dword [ebp - 0x1bc], 0x54d3f8
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [ebp - 0x1b4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x48], 2
call fcn.004393c0
mov eax, dword [ebp - 0x1cc]
push 8
mov dword [ebp - 4], 2
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 - 0x1cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1d0], eax
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00449143
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43a4ce
push 1
mov byte [ebp - 4], 3
call fcn.0044aa3e
add esp, 4
mov dword [ebx + 4], eax
jmp 0x43a4d0
xor ebx, ebx
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x190]
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x184], eax
mov eax, dword [0x5972a0]
mov dword [ebp - 0x174], eax
mov eax, dword [0x5972a4]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x16c], 0
mov byte [ebp - 0x177], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x10c], 0x54d3f0
mov dword [ebp - 0xfc], 0x54d3f8
mov dword [ebp - 0x94], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x48], 6
call fcn.004393c0
mov eax, dword [ebp - 0x10c]
push 8
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 - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x110], eax
mov dword [ebp - 0xf4], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00449143
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43a634
push 1
mov byte [ebp - 4], 7
call fcn.0044aa3e
add esp, 4
mov dword [ebx + 4], eax
jmp 0x43a636
xor ebx, ebx
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x5972a0]
mov dword [ebp - 0xb4], eax
mov eax, dword [0x5972a4]
mov dword [ebp - 0xf4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xac], 0
mov byte [ebp - 0xb7], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xbc], 0
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 8
jb 0x43a710
mov eax, dword [edi]
push 0x40
push 0x21
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00440e00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x40
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10c]
push 0x32
push eax
call fcn.00440e00
cmp dword [ebp - 0x168], 0
je 0x43aa33
cmp dword [ebp - 0xa8], 0
je 0x43aa33
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x39]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x39], 0
push ecx
push 0x400
call fcn.00438f90
mov eax, dword [ebp - 0x1cc]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1c0], 1
jne 0x43a910
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 - 0x1cc]
call fcn.004412e0
mov ebx, dword [ebp - 0x1c4]
test ebx, ebx
je 0x43a910
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x43a7cf
mov eax, dword [esi]
push ebx
push dword [ebp - 0x38]
push dword [esi + 0x10]
push eax
call fcn.00402e20
add esp, 0x10
lea ecx, [ebp - 0xfc]
push 0
push ebx
push dword [ebp - 0x38]
call fcn.00441a90
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
cmp dword [ebp + ecx - 0xc4], 0
je 0x43a8e5
mov ecx, dword [ebp + ecx - 0xc4]
lea edx, [ebp - 0xfc]
mov dword [ebp - 0x44], edx
test ecx, ecx
je 0x43a826
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
mov byte [ebp - 4], 0xa
cmp dword [ebp + ecx - 0xf0], 0
jne 0x43a857
mov ecx, dword [ebp + ecx - 0xc0]
test ecx, ecx
je 0x43a857
lea edx, [ebp - 0xfc]
cmp ecx, edx
je 0x43a857
call fcn.00440c40
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xf0]
test eax, eax
sete byte [ebp - 0x40]
mov byte [ebp - 4], 0xb
test eax, eax
jne 0x43a8ac
mov ecx, dword [ebp + ecx - 0xc4]
mov eax, dword [ecx]
call dword [eax + 0x34]
cmp eax, 0xffffffff
jne 0x43a8ac
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xf0]
and eax, 0x13
or eax, 4
mov dword [ebp + ecx - 0xf0], eax
mov ecx, dword [ebp + ecx - 0xec]
and ecx, eax
jne 0x43acb5
mov byte [ebp - 4], 0xc
call fcn.0044a23e
test al, al
jne 0x43a8c4
lea ecx, [ebp - 0xfc]
call fcn.0040c2c0
mov eax, dword [ebp - 0xfc]
mov byte [ebp - 4], 0xd
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0xc4]
test ecx, ecx
je 0x43a8e1
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
push eax
push 0
push ecx
call fcn.004ee390
mov eax, dword [ebp - 0x1cc]
add esp, 0xc
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1c0], 1
je 0x43a7a0
lea ecx, [ebp - 0xf4]
call fcn.00440830
test eax, eax
jne 0x43a97a
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xd4], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x100]
and eax, 0x17
mov dword [ebp + ecx - 0x100], eax
mov ecx, dword [ebp + ecx - 0xfc]
and ecx, eax
je 0x43a97a
test cl, 4
jne 0x43aca9
test cl, 2
mov eax, str.ios_base::eofbit_set
mov esi, str.ios_base::failbit_set
cmove esi, eax
lea eax, [ebp - 0x44]
push 1
jmp 0x43acd6
lea ecx, [ebp - 0x1b4]
call fcn.00440830
test eax, eax
jne 0x43a9d5
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x194], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x1c0]
and eax, 0x17
mov dword [ebp + ecx - 0x1c0], eax
mov ecx, dword [ebp + ecx - 0x1bc]
and ecx, eax
je 0x43a9d5
test cl, 4
je 0x43a960
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x44]
push 1
jmp 0x43acd6
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43a9df
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43aa56
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x43aa33
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x43aa14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43acfd
push edx
push ecx
call fcn.00448d6e
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x10c]
call fcn.00439890
lea ecx, [ebp - 0x1cc]
call fcn.00439890
lea ecx, [ebp - 0x28]
call fcn.00408cf0
jmp 0x43ac88
cmp dword [edi + 0x14], 8
jb 0x43aa5e
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x38]
test eax, eax
je 0x43a9ed
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 8
test ecx, ecx
je 0x43aaca
mov edx, dword [ebp - 0x30]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x43aaab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43acfd
push edx
push ecx
call fcn.00448d6e
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x10c]
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 - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0xf4]
call fcn.00439600
mov eax, dword [ebp - 0x10c]
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 - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x110], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x100], eax
mov eax, dword [ebp - 0x10c]
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 - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x110], eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - 0x94], vtable.std::ios_base.0
call fcn.0044aff7
mov eax, dword [ebp - 0x1cc]
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 - 0x1cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x1d0], eax
lea ecx, [ebp - 0x1b4]
call fcn.00439600
mov eax, dword [ebp - 0x1cc]
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 - 0x1cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1d0], eax
mov eax, dword [ebp - 0x1bc]
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 - 0x1bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1c0], eax
mov eax, dword [ebp - 0x1cc]
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 - 0x1cc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1d0], eax
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0044aff7
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x43ac88
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ac7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43acfd
push edx
push ecx
call fcn.00448d6e
add esp, 8
mov bl, byte [ebp - 0x29]
mov al, bl
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.00448d5d
mov esp, ebp
pop ebp
ret
mov esi, str.ios_base::badbit_set
lea eax, [ebp - 0x44]
push 1
jmp 0x43acd6
test cl, 4
je 0x43acc1
mov esi, str.ios_base::badbit_set
jmp 0x43acd1
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 - 0x4c]
push eax
call fcn.0040ce80
add esp, 8
lea ecx, [ebp - 0x1e0]
push eax
push esi
call fcn.004088f0
push 0x57bb2c
lea eax, [ebp - 0x1e0]
push eax
call fcn.004ee631
call fcn.004f2969
int3