Function at 0x415170
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Get common file path
Persist via lnk shortcut
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45e391
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x71c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x321]
mov byte [esp + 0x320], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x744]
mov dword [esp + 0x18], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x320]
push eax
push ecx
call fcn.00405ca0
add esp, 8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
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, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
mov dword [esp + 0x734], ebx
push eax
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x41525a
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x41525a
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x738], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x415b64
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x118]
mov cl, byte [esp + ecx + 0x117]
cmp cl, 0x5c
je 0x415281
mov byte [eax], 0x5c
mov edi, 0x47165c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x118]
push ecx
push eax
lea ecx, [esp + 0x48]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x40]
push 0x47188c
lea edx, [esp + 0x30]
push ecx
push edx
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__
lea eax, [esp + 0x32c]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
mov byte [esp + 0x74c], 1
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, 0x18
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 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]
mov byte [esp + 0x734], 2
stosb byte es:[edi], al
mov eax, dword [ebp + 0x170]
cmp eax, ebx
jne 0x41533f
mov eax, ecx
mov edx, dword [ebp + 0x160]
cmp edx, ebx
jne 0x41534b
mov edx, ecx
mov ebp, dword [ebp + 0x180]
cmp ebp, ebx
je 0x415357
mov ecx, ebp
mov ebx, dword [esp + 0x740]
push eax
mov eax, dword [esp + 0x740]
push edx
push ecx
push eax
push ebx
lea ecx, [esp + 0x230]
push 0x471870
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x78]
add esp, 0x1c
test eax, eax
jne 0x41538d
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.00405f20
add esp, 4
test eax, eax
jne 0x415490
lea edx, [esp + 0x40]
push 0x4716c4
lea eax, [esp + 0x6c]
push edx
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 eax, dword [esp + 0x6c]
mov byte [esp + 0x734], 3
test eax, eax
jne 0x4153ca
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 dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
mov edi, dword [esp + 0x744]
mov esi, 9
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x4153ea
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 0
lea ecx, [esp + 0x324]
push 0
push ecx
push eax
push edi
call fcn.00402f40
add esp, 0x14
cmp eax, 1
je 0x415411
cmp eax, 0xfffffff4
je 0x415411
mov edx, esi
dec esi
test edx, edx
jne 0x4153dd
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x41541f
mov esi, 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]
lea eax, [esp + 0x320]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x10c]
push ecx
push edx
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__
mov eax, dword [eax + 4]
add esp, 0xc
test eax, eax
jne 0x415448
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 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
push 1
lea ecx, [esp + 0x10c]
sete 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_]
test bl, bl
mov byte [esp + 0x734], 2
push 1
lea ecx, [esp + 0x6c]
je 0x415483
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41581a
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 ebx, dword [esp + 0x740]
mov esi, dword [esp + 0x748]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4154f3
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
mov byte [esp + 0x224], al
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4157d4
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
jmp 0x4157d4
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x415500
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.00405f20
add esp, 4
test eax, eax
jne 0x4157d4
mov edi, 9
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x415523
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 0
push 0
push 0x47188c
push eax
push esi
call fcn.00402f40
add esp, 0x14
cmp eax, 1
je 0x41558d
cmp eax, 0xfffffff4
je 0x415547
mov ecx, edi
dec edi
test ecx, ecx
jne 0x415516
cmp eax, 1
je 0x41558d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x220], 0
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4157d4
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4154de
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x78], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x18], 1
mov dword [esp + 0xd4], ecx
push 0
lea edx, [esp + 0x84]
push 0
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0x740], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push 0
lea ecx, [esp + 0x84]
mov dword [esp + 0x738], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov eax, dword [esp + 0x78]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x78], edx
mov eax, dword [esp + 0x30]
mov byte [esp + 0x734], 6
test eax, eax
jne 0x415619
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]
mov ecx, dword [esp + 0xd0]
test ecx, ecx
jne 0x41565c
push 1
push eax
call dword [sym.imp.MSVCP60.dll_struct__iobuf____cdecl_std::__Fiopen_char_const___int_]
add esp, 8
test eax, eax
je 0x41565c
push 1
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Initcvt_void_]
lea eax, [esp + 0x80]
test eax, eax
jne 0x415674
mov ecx, dword [esp + 0x78]
push 0
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x80]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x41577f
xor eax, eax
lea ecx, [esp + 0x3c]
push 4
mov word [esp + 0x41], ax
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x44], 0
mov byte [esp + 0x47], al
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x4156db
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x4156db
push 2
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea edx, [esp + 0x80]
test edx, edx
jne 0x4156f3
mov eax, dword [esp + 0x78]
push 0
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x80]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, 4
lea edi, [esp + 0x3c]
lea esi, [esp + 0x18]
xor eax, eax
mov byte [esp + 0x18], 0x4d
mov byte [esp + 0x19], 0x5a
mov byte [esp + 0x1a], 0x90
mov byte [esp + 0x1b], 0
repe cmpsb byte [esi], byte es:[edi]
je 0x41571f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41577f
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x415730
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 dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x220], 0
mov ebp, ecx
lea ecx, [esp + 0x30]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41577f
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xd4]
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x78], eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x734], 7
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [esp + 0x78]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov byte [esp + 0x734], 2
mov edx, dword [ecx + 4]
lea ecx, [esp + 0xd4]
mov dword [esp + edx + 0x78], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x14]
push ecx
push 0x464e9c
push 1
push 0
push 0x464ebc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x41581a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push ecx
push 0x464eac
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jge 0x415847
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x738], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x738], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x41523e
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], 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_]
lea ecx, [esp + 0x420]
mov byte [esp + 0x734], 8
push ecx
call fcn.00436da0
lea edi, [esp + 0x424]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4158be
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x420]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
mov edi, 0x46f144
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
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 edx, dword [ecx]
mov ecx, dword [esp + 0x24]
sub edx, ecx
cmp edx, esi
ja 0x4158e7
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x41592e
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41592e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, esi
mov esi, 0x46f144
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ebx, dword [esp + 0x74c]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
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 edx, dword [esp + 0x24]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x41595a
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
xor ebp, ebp
cmp esi, ebp
jbe 0x4159a2
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4159a0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, ebx
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
xor ebp, ebp
mov edi, str..lnk
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
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 edx, dword [ecx]
mov ecx, dword [esp + 0x24]
sub edx, ecx
cmp edx, esi
ja 0x4159cb
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, ebp
jbe 0x415a14
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebp, [eax + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x415a12
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, esi
mov esi, str..lnk
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
xor ebp, ebp
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
jne 0x415a22
mov ecx, 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]
mov eax, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp + 0x14]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x21c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0x5c]
cmp eax, ebp
jne 0x415a57
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]
mov ecx, dword [esp + 0x14]
push ebp
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x44]
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x415a70
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]
lea ecx, [esp + 0x524]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x524]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x54]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x415ad4
mov al, byte [ecx - 1]
test al, al
je 0x415aca
cmp al, 0xff
je 0x415aca
dec al
mov byte [ecx - 1], al
jmp 0x415ad4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x20], ebp
cmp ecx, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x415b04
mov al, byte [ecx - 1]
test al, al
je 0x415afa
cmp al, 0xff
je 0x415afa
dec al
mov byte [ecx - 1], al
jmp 0x415b04
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x5c], ebp
cmp ecx, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
je 0x415b34
mov al, byte [ecx - 1]
test al, al
je 0x415b2a
cmp al, 0xff
je 0x415b2a
dec al
mov byte [ecx - 1], al
jmp 0x415b34
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
je 0x415b64
mov al, byte [ecx - 1]
test al, al
je 0x415b5a
cmp al, 0xff
je 0x415b5a
dec al
mov byte [ecx - 1], al
jmp 0x415b64
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x72c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x728
ret 0x14