Function at 0x100174e0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003e9db
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push eax
call fcn.100174a0
add esp, 4
test eax, eax
je 0x100177b9
mov cl, byte [esp + 0x50]
xor ebx, ebx
push edi
mov byte [esp + 0x28], cl
push ebx
lea ecx, [esp + 0x2c]
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 edx, dword [esp + 0x4c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x30]
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_]
mov dl, byte [esp + 0x54]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], ebx
mov byte [esp + 0x1c], 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 edx, dword [esp + 0x50]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
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_]
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 edi, 0x10054560
or ecx, 0xffffffff
mov byte [esp + 0x40], 1
mov edx, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x10054560
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_last_of_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
pop edi
mov ecx, dword [ecx]
cmp ecx, eax
je 0x100176e3
inc eax
push ecx
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x20]
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_]
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100175dd
xor eax, eax
jmp 0x100175e3
mov ecx, dword [esp + 0xc]
add eax, ecx
push esi
lea ecx, [esp + 8]
lea esi, [eax - 1]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
cmp esi, ebx
jne 0x100175f9
xor esi, esi
jmp 0x100175fd
sub esi, dword [esp + 0xc]
push 1
push esi
lea ecx, [esp + 0x10]
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__::erase_unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
cmp eax, 1
pop esi
jne 0x100176ac
mov edx, 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 ecx, ebx
jne 0x10017628
mov ecx, edx
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10017632
mov eax, edx
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x100176d2
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10017735
push 1
lea ecx, [esp + 8]
mov byte [esp + 0x40], 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 + 0x18]
mov byte [esp + 0x40], 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 ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x10017723
mov al, byte [ecx - 1]
cmp al, bl
je 0x10017719
cmp al, 0xff
je 0x10017719
dec al
pop ebx
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov edx, 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 ecx, ebx
jne 0x100176b8
mov ecx, edx
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100176c2
mov eax, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10017642
push 1
lea ecx, [esp + 8]
mov byte [esp + 0x40], 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 + 0x18]
mov byte [esp + 0x40], 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_]
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 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_]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 8]
cmp ecx, ebx
je 0x10017759
mov al, byte [ecx - 1]
cmp al, bl
je 0x1001774f
cmp al, 0xff
je 0x1001774f
dec al
mov byte [ecx - 1], al
jmp 0x10017759
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ebx
cmp ecx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
je 0x10017789
mov al, byte [ecx - 1]
cmp al, bl
je 0x1001777f
cmp al, 0xff
je 0x1001777f
dec al
mov byte [ecx - 1], al
jmp 0x10017789
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x100177b9
mov al, byte [ecx - 1]
cmp al, bl
je 0x100177af
cmp al, 0xff
je 0x100177af
dec al
mov byte [ecx - 1], al
jmp 0x100177b9
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret