Function at 0x4018c9
Capabilities:
Move file

Disassembly:
mov eax, 0x4042ec
call fcn.00403fa0
mov eax, 0x10030
call fcn.00403fd0
push ebx
push esi
mov dword [ebp - 0x10], ecx
push edi
xor ebx, ebx
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1003b]
mov byte [ebp - 0x1003c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp + 0xf]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x28], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov esi, dword [ebp + 0xc]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x2c], esp
mov al, byte [esi]
push ebx
mov ecx, edi
mov dword [ebp - 4], ebx
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, edi
push dword [eax]
push ebx
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
sub esp, 0x10
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp + 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_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__]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040174a
mov ecx, dword [ebp - 0x10]
call fcn.004015ed
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
call fcn.0040162d
mov ecx, dword [ebp + 0x10]
cmp eax, 0xc8
mov dword [ecx], eax
jne 0x401ab8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push 1
pop edi
mov ecx, esi
mov eax, dword [eax]
push edi
push eax
lea eax, [ebp + 0xf]
push eax
mov byte [ebp + 0xf], 0x5c
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
push eax
lea eax, [ebp - 0x3c]
push ebx
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 2
push dword [ecx]
lea ecx, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4019dc
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call fcn.00402d47
mov dword [esp], str..tmp
lea eax, [ebp - 0x3c]
push esi
push eax
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___char_const__
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 3
push dword [ecx]
lea ecx, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x401a26
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 2
push ebx
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ab8
cmp dword [ebp + 8], ebx
jle 0x401a82
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1003c]
push 0x10000
push eax
mov dword [ebp + 0xc], ebx
call fcn.0040136d
cmp eax, ebx
jle 0x401a82
add dword [ebp - 0x14], eax
lea ecx, [ebp + 0xc]
push ebx
push ecx
push eax
lea eax, [ebp - 0x1003c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_riSign_Time_Stamping_Services_CA0_0H]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jl 0x401a48
push edi
call dword [sym.imp.KERNEL32.dll_c.10_U_VeriSign_Time_Stamping_Services_CA0_0H]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jne 0x401ab8
mov esi, dword [esi + 4]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp esi, ebx
jne 0x401a9f
mov esi, eax
cmp dword [ebp - 0x24], ebx
je 0x401aa7
mov eax, dword [ebp - 0x24]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_rename]
pop ecx
mov dword [ebp - 0x18], 1
pop ecx
mov ecx, dword [ebp - 0x10]
call fcn.004013a8
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc