Function at 0x438c80
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449fe3
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa8]
push 0
push edi
call fcn.0040f7b0
add esp, 8
test al, al
je 0x438fdd
mov al, byte [esp + 0xb0]
mov esi, dword [esp + 0xac]
or ebp, 0xffffffff
test al, al
je 0x438e23
mov al, byte [esp + 0x23]
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 + 0x28]
push 0
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0
mov dword [esp + 0x30], 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 0x438d72
lea eax, [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x4c]
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 + 0xa0], 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 + 0x4c]
mov byte [esp + 0xa4], 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 + 0x3c]
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 + 0xa8], 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 + 0x38]
mov bl, al
mov byte [esp + 0xa0], 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 0x438df2
test eax, eax
jne 0x438dc3
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 + 0xa4], ebp
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 0x438e23
xor al, al
jmp 0x438fdd
test eax, eax
jne 0x438dfb
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 + 0x5c]
call fcn.00409cf0
mov eax, dword [esp + 0x90]
test eax, eax
je 0x438e86
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], ebp
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 + 0x10]
push esi
push ecx
call fcn.0040d9d0
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], 3
test eax, eax
jne 0x438e49
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 0x438ed5
lea edx, [esp + 0x10]
push edx
call fcn.0040b260
add esp, 4
test al, al
jne 0x438ed5
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x438ece
mov al, byte [ecx - 1]
test al, al
je 0x438ec2
cmp al, 0xff
je 0x438ec2
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x438fdd
mov eax, dword [esp + 0x7c]
test eax, eax
ja 0x438ea4
mov eax, dword [esp + 0x78]
test eax, eax
ja 0x438ea4
mov eax, dword [esp + 0x66]
and eax, 0xf000
cmp eax, 0x4000
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], 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 0x438fdd
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor al, al
jmp 0x438fdd
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xa0], ebp
test ecx, ecx
je 0x438f02
mov al, byte [ecx - 1]
test al, al
je 0x438ef6
cmp al, 0xff
je 0x438ef6
dec al
mov byte [ecx - 1], al
jmp 0x438f02
lea eax, [ecx - 2]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x438f15
mov al, 1
jmp 0x438fdd
push 0
push edi
call fcn.0040f7b0
add esp, 8
test al, al
je 0x438fca
mov bl, byte [esp + 0xb0]
test bl, bl
je 0x438f46
push 0
push esi
call fcn.0040f7b0
add esp, 8
test al, al
jne 0x438fca
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0040d9d0
add esp, 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa0], 4
test eax, eax
jne 0x438f6c
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 0x438fa1
lea ecx, [esp + 0x28]
push ecx
call fcn.0040b260
add esp, 4
test al, al
jne 0x438fa1
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa4], ebp
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 0x438fdd
push 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xa4], ebp
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 0x438fbc
push 1
jmp 0x438fbe
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x438fce
xor al, al
jmp 0x438fdd
push edi
call dword [sym.imp.MSVCRT.dll__wremove]
add esp, 4
test eax, eax
sete al
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret