Function at 0x407330
Capabilities:
Move file

Disassembly:
mov rax, rsp
sub rsp, 0x218
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, r9
mov rbx, r8
mov rdi, rcx
test edx, edx
je 0x40738c
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x00405c30]
call sub.MFC42u.dll_Ordinal_1404
mov eax, 1
jmp 0x4077ae
cmp qword [r8 + 0x18], 0
sete sil
mov r8d, dword [rcx + 0x200]
lea rdx, [rsp + 0xc0]
call fcn.004015f0
nop
xor eax, eax
mov byte [rsp + 0x39], al
lea r8, [rsp + 0x39]
lea rdx, str.out.zip
lea rcx, [rsp + 0x148]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
xor edx, edx
lea rcx, [rsp + 0x188]
call fcn.0041f760
nop
lea r8, [rsp + 0x148]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.0050a290
nop
lea rcx, [rsp + 0x188]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x148]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor edx, edx
call qword [sym.imp.msvcrt.dll__access]
test eax, eax
jne 0x407440
mov rcx, qword [rsp + 0x68]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll__unlink]
lea rdx, [rdi + 0x208]
lea rcx, [rsp + 0xc0]
call fcn.00516b00
lea r8, str..zip
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call sub.msvcp60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__char_const____ptr64_
mov rdx, qword [rsp + 0x68]
mov r8, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test rdx, rdx
cmove rdx, r8
mov rcx, qword [rax + 8]
test rcx, rcx
cmove rcx, r8
call qword [sym.imp.msvcrt.dll_rename]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov r8b, 1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x108]
call fcn.00509060
nop
test sil, sil
je 0x4074c0
lea rdx, [rdi + 0x230]
jmp 0x4074c4
lea rdx, [rbx + 8]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
test sil, sil
je 0x4074e1
lea rdx, [rdi + 0x250]
jmp 0x4074e5
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x128]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
test sil, sil
je 0x407502
lea rdx, [rdi + reloc.MFC42u.dll_CDaoException::CDaoException]
jmp 0x407506
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
mov byte [rsp + 0x30], Ordinal_60
mov rax, qword [sym.imp.msvcp60.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov r9d, 1
mov r8, qword [rax]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcp60.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__const___ptr64]
cmp rax, 6
jb 0x40754f
mov rcx, qword [sym.imp.msvcp60.dll_unsigned_long_long_unsigned___int64__const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp rax, qword [rcx]
jne 0x4075ab
mov r8d, 0x24b
lea rdx, [0x00696efc]
lea rcx, [rsp + 0x80]
call fcn.0050e0a0
nop
mov r8, rax
lea rdx, [0x00696ef8]
lea rcx, [rsp + 0x40]
call sub.msvcp60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const____ptr64__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call qword [reloc.msvcp60.dll___Y__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_AEBV01__Z]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor eax, eax
mov byte [rsp + 0x30], al
call sub.MFC42u.dll_Ordinal_1463
lea r8, [rsp + 0x30]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const____ptr64__class_std::allocator_unsigned_short_int__const____ptr64____ptr64]
nop
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x1e8]
call fcn.0050e570
nop
lea r8, [0x00696ef4]
mov rdx, rax
lea rcx, [rsp + 0x1a8]
call sub.msvcp60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__char_const____ptr64_
nop
mov r8, rbp
mov rdx, rax
lea rcx, [rsp + 0x1c8]
call sub.msvcp60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64_
nop
lea r8, [0x00696ef0]
mov rdx, rax
lea rcx, [rsp + 0x168]
call sub.msvcp60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__char_const____ptr64_
nop
lea rcx, [rsp + 0x1c8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1a8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1e8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void____ptr64]
xor r11d, r11d
mov byte [rsp + 0x38], r11b
lea r8, [rsp + 0x38]
lea rdx, str.out.zip
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64__class_std::allocator_char__const____ptr64____ptr64]
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x168]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0xa0]
call fcn.005105e0
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll__unlink]
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
cmove rcx, qword [sym.imp.msvcp60.dll_char_const__private:_static_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
call qword [sym.imp.msvcrt.dll__unlink]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_time]
mov dword [rdi + 0x22c], eax
mov rcx, qword [rdi + 0x190]
call fcn.004245e0
mov rbx, rax
lea rcx, [rdi + 0x1e0]
lea rdx, [rsp + 0x40]
call fcn.00416b20
nop
mov rdx, rax
mov rcx, rbx
call fcn.004e66b0
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x168]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xe8]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x128]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x108]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xc0]
call qword [sym.imp.msvcp60.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
mov eax, 1
mov rbx, qword [rsp + 0x220]
mov rbp, qword [rsp + 0x228]
mov rsi, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
add rsp, 0x218
ret