Function at 0x410a90
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444c97
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov edi, dword [esp + 0xa4]
push 0
push edi
call fcn.0040f7b0
add esp, 8
test al, al
je 0x410d27
mov al, byte [esp + 0xac]
mov esi, dword [esp + 0xa8]
test al, al
je 0x410c37
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
push 1
lea ecx, [esp + 0x24]
push 0
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], 0
mov dword [esp + 0x2c], 0x2f
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [edx]
je 0x410b7e
lea eax, [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00409f00
add esp, 0xc
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0x9c], 1
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 2
lea edx, [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
push 0x45970c
push eax
mov byte [esp + 0xa4], 2
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__]
add esp, 8
lea ecx, [esp + 0x34]
mov bl, al
mov byte [esp + 0x9c], 0
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x14]
test bl, bl
je 0x410c02
test eax, eax
jne 0x410bcf
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
push 1
mov dword [esp + 0xa0], 0xffffffff
sete bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
test bl, bl
je 0x410c37
xor al, al
jmp 0x410d27
test eax, eax
jne 0x410c0b
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [esp + 0x58]
call fcn.00409cf0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x410c9a
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.0040d9d0
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x9c], 3
test eax, eax
jne 0x410c5d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call fcn.0040cd50
add esp, 4
test al, al
jne 0x410ce3
lea edx, [esp + 0x24]
push edx
call fcn.0040b260
add esp, 4
test al, al
jne 0x410ce3
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x410cdf
mov al, byte [ecx - 1]
test al, al
je 0x410cd3
cmp al, 0xff
je 0x410cd3
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x410d27
mov eax, dword [esp + 0x78]
test eax, eax
ja 0x410cb8
mov eax, dword [esp + 0x74]
test eax, eax
ja 0x410cb8
mov eax, dword [esp + 0x62]
and eax, 0xf000
cmp eax, 0x4000
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
xor al, al
jmp 0x410d27
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x410d27
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x410d09
mov al, byte [ecx - 1]
test al, al
je 0x410cfd
cmp al, 0xff
je 0x410cfd
dec al
mov byte [ecx - 1], al
jmp 0x410d09
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0xac]
test al, al
je 0x410d18
push 1
jmp 0x410d1a
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret