Function at 0x1001a860
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::MoveFileA_
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 0x1001aafb
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 0x1001a9f3
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 0x1001a953
mov eax, str.NULL
push eax
push ecx
push str.From:
push ecx
lea eax, [esp + 0x44]
push str._Chrome::VirtualPreferencesFile::MoveFileA_
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100046e0
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 0x1001a9b1
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 0x1001aafb
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x7d0
call eax
test eax, eax
je 0x1001aafb
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 0x1001aa5c
mov eax, str.NULL
push eax
push ecx
push str.To:
push ecx
lea eax, [esp + 0x44]
push str._Chrome::VirtualPreferencesFile::MoveFileA_
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100046e0
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 0x1001aaba
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 + 0x40]
mov ecx, edi
call eax
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
mov ebx, eax
test esi, esi
je 0x1001ab8d
cmp dword [esp + 0x1c], 0
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
je 0x1001ab44
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 0x1001ab44
mov edx, dword [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x1001ab9d
cmp dword [esp + 0x14], 0
je 0x1001ab8d
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 0x1001ab8d
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x1001abab
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
jmp 0x1001abab
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [0x100ceed0]
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