Function at 0x1001ac00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a3f80
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x100cc020]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x100cc020]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x78
push str._Chrome::VirtualPreferencesFile::MoveFileW_
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
lea esi, [esp + 0x2c]
mov dword [esp + 0xe4], eax
call fcn.10007ba0
mov byte [esp + 0xe0], 1
mov ecx, dword [0x100ce89c]
test ecx, ecx
je 0x1001ae9b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x7d0
call eax
mov esi, dword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____cdecl_std::locale::classic_void_]
test eax, eax
je 0x1001ad93
push 1
push 2
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
mov byte [esp + 0xe0], 2
call esi
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + 4]
lea ecx, [esp + ecx + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::locale___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const__]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov eax, ebx
test ebx, ebx
jne 0x1001acf3
mov eax, 0x100ad3b4
push eax
push ecx
push str.From:
push ecx
lea eax, [esp + 0x44]
push str._Chrome::VirtualPreferencesFile::MoveFileW_
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 8
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
mov byte [esp + 0xe0], 3
cmp dword [esp + 0xcc], 8
mov eax, dword [esp + 0xb8]
jae 0x1001ad51
lea eax, [esp + 0xb8]
mov ebx, dword [esp + 0xc8]
mov ecx, dword [0x100ce89c]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x10]
push 0x7d0
call eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xe0], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov ecx, dword [0x100ce89c]
test ecx, ecx
je 0x1001ae9b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x7d0
call eax
test eax, eax
je 0x1001ae9b
push 1
push 2
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
mov bl, 4
mov byte [esp + 0xe0], bl
call esi
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + 4]
lea ecx, [esp + ecx + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::locale___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const__]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1001adfc
mov eax, 0x100ad3b4
push eax
push ecx
push str.To:
push ecx
lea eax, [esp + 0x44]
push str._Chrome::VirtualPreferencesFile::MoveFileW_
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 8
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
mov byte [esp + 0xe0], 5
cmp dword [esp + 0xcc], 8
mov eax, dword [esp + 0xb8]
jae 0x1001ae5a
lea eax, [esp + 0xb8]
mov esi, dword [esp + 0xc8]
mov ecx, dword [0x100ce89c]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x10]
push 0x7d0
call eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0xe0], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
mov ebx, eax
test esi, esi
je 0x1001af2d
cmp dword [esp + 0x1c], 0
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
je 0x1001aee4
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call edi
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x1001aee4
mov edx, dword [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x1001af3d
cmp dword [esp + 0x14], 0
je 0x1001af2d
mov eax, dword [esp + 0x14]
push eax
push esi
call edi
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x1001af2d
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x1001af4b
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
jmp 0x1001af4b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [0x100ceed4]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 0
call fcn.10007d10
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.1009ecb4
mov esp, ebp
pop ebp
ret 8