Function at 0x10019ee0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a4005
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x100cc020]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x100cc020]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x78
push str._Chrome::VirtualPreferencesFile::CopyFileA_
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
lea esi, [esp + 0x2c]
mov dword [esp + 0x184], eax
call fcn.10007ba0
mov byte [esp + 0x180], 1
mov ecx, dword [0x100ce89c]
test ecx, ecx
je 0x1001a28e
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 0x1001a085
push 1
push 2
lea ecx, [esp + 0xbc]
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 + 0x180], 2
call esi
mov edx, dword [esp + 0xb4]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edx + 4]
lea ecx, [esp + ecx + 0xbc]
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 + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov eax, ebx
test ebx, ebx
jne 0x10019fdc
mov eax, str.NULL
push eax
push ecx
push str.From:
push ecx
lea eax, [esp + 0xc4]
push str._Chrome::VirtualPreferencesFile::CopyFileA_
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 + 0x154]
push ecx
lea ecx, [esp + 0xb8]
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 + 0x180], 3
cmp dword [esp + 0x16c], 8
mov eax, dword [esp + 0x158]
jae 0x1001a040
lea eax, [esp + 0x158]
mov ebx, dword [esp + 0x168]
mov ecx, dword [0x100ce89c]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 0x10]
push 0x7d0
call eax
lea ecx, [esp + 0x154]
mov byte [esp + 0x180], 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 + 0xb4]
mov byte [esp + 0x180], 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 0x1001a28e
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x7d0
call eax
test eax, eax
je 0x1001a191
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 + 0x180], bl
call esi
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
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 + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1001a0ee
mov eax, str.NULL
push eax
push ecx
push str.To:
push ecx
lea eax, [esp + 0x44]
push str._Chrome::VirtualPreferencesFile::CopyFileA_
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 + 0x138]
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 + 0x180], 5
cmp dword [esp + 0x150], 8
mov eax, dword [esp + 0x13c]
jae 0x1001a14c
lea eax, [esp + 0x13c]
mov edi, dword [esp + 0x14c]
mov ecx, dword [0x100ce89c]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx + 0x10]
push 0x7d0
call eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x180], 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 + 0x180], 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 edi, dword [esp + 0x24]
mov ecx, dword [0x100ce89c]
test ecx, ecx
je 0x1001a28e
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x7d0
call eax
test eax, eax
je 0x1001a28e
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, 6
mov byte [esp + 0x180], bl
call esi
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
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 + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::locale::destructor_void_]
mov eax, dword [ebp + 0x10]
push eax
push ecx
push str.Fail:
push ecx
lea ecx, [esp + 0x44]
push str._Chrome::VirtualPreferencesFile::CopyFileA_
push ecx
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea edx, [esp + 0x138]
push edx
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 + 0x180], 7
cmp dword [esp + 0x150], 8
mov eax, dword [esp + 0x13c]
jae 0x1001a24d
lea eax, [esp + 0x13c]
mov esi, dword [esp + 0x14c]
mov ecx, dword [0x100ce89c]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x10]
push 0x7d0
call eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x180], 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 + 0x180], 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 0x1001a32c
cmp dword [esp + 0x20], 0
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
je 0x1001a2df
mov ecx, dword [esp + 0x20]
push ecx
push esi
call edi
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x1001a2df
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x1001a340
cmp dword [esp + 0x18], 0
je 0x1001a32c
mov ecx, dword [esp + 0x18]
push ecx
push esi
call edi
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x1001a32c
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x1001a34e
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
jmp 0x1001a34e
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [0x100ceec8]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], 0
call fcn.10007d10
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.1009ecb4
mov esp, ebp
pop ebp
ret 0xc