Function at 0x4021b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d2ab
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x48b034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
push esi
push str._s.bak
push eax
mov dword [ebp - 0x98], 0
call fcn.004016f0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x14c], 0x48378c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x98], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x150], eax
lea eax, [ebp - 0x148]
mov ecx, eax
mov dword [ebp - 0x9c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
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 - 0x100], 0
mov byte [ebp - 0x10b], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x566f44]
mov ecx, dword [0x566f48]
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x110], 0
push ecx
push 2
push esi
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 3
call fcn.004033e0
test eax, eax
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x14c]
push 0
mov eax, dword [eax + 4]
je 0x40231a
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x402324
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [ebp - 0xfc], 0
je 0x4024e7
push 0x403760
push ecx
mov edx, 0x47bb40
lea ecx, [ebp - 0x14c]
call fcn.00403520
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [edi + 8]
mov eax, 0x78787879
sub ecx, dword [edi + 4]
imul ecx
mov dword [ebp - 0x98], 0
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4023e6
xor ebx, ebx
nop word [eax + eax]
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x14c]
push 0x403760
mov edx, 0x47bb48
add esi, ebx
call fcn.00403520
mov edx, esi
mov ecx, eax
call fcn.00403520
push ecx
mov edx, 0x47bb44
mov ecx, eax
call fcn.00403520
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [edi + 8]
mov eax, 0x78787879
sub ecx, dword [edi + 4]
add ebx, 0x11
mov esi, dword [ebp - 0x98]
imul ecx
inc esi
sar edx, 3
mov eax, edx
mov dword [ebp - 0x98], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x402380
push 0x403760
push 0x403760
mov edx, 0x47bb4c
lea ecx, [ebp - 0x14c]
call fcn.00403520
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x403760
push ecx
mov edx, 0x47bb50
lea ecx, [ebp - 0x14c]
call fcn.00403520
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [edi + 0x14]
mov eax, 0x38e38e39
sub ecx, dword [edi + 0x10]
imul ecx
mov dword [ebp - 0x98], 0
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4024c6
xor ebx, ebx
nop word [eax + eax]
mov esi, dword [edi + 0x10]
lea ecx, [ebp - 0x14c]
push 0x403760
mov edx, 0x47bb58
add esi, ebx
call fcn.00403520
mov edx, esi
mov ecx, eax
call fcn.00403520
push ecx
mov edx, 0x47bb54
mov ecx, eax
call fcn.00403520
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [edi + 0x14]
mov eax, 0x38e38e39
sub ecx, dword [edi + 0x10]
add ebx, 0x24
mov esi, dword [ebp - 0x98]
imul ecx
inc esi
sar edx, 3
mov eax, edx
mov dword [ebp - 0x98], esi
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x402460
push 0x403760
push ecx
mov edx, 0x47bb5c
lea ecx, [ebp - 0x14c]
call fcn.00403520
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x150], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0xfc], 0
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
je 0x402558
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x10c]
cmp dword [eax], ecx
jne 0x402558
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xf8]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x12c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x11c]
mov dword [eax], edx
cmp byte [ebp - 0x100], 0
je 0x40256c
lea ecx, [ebp - 0x148]
call fcn.00403360
lea ecx, [ebp - 0x148]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x144]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046bb5b
mov esp, ebp
pop ebp
ret 4