Function at 0x410650
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x444c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x48], edi
mov dword [edi], 0x44c9c8
xor ecx, ecx
mov dword [esp + 0xa4], 1
mov dword [esp + 0x10], ecx
xor ebp, ebp
mov bl, 2
mov eax, dword [edi + 8]
lea esi, [edi + 4]
test eax, eax
je 0x4107c5
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
cmp ecx, edx
jae 0x4107c5
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4107c5
mov edx, dword [edi + 0x1c]
sub edx, eax
sar edx, 4
cmp ecx, edx
jae 0x4107c5
mov eax, dword [edi + 8]
push 0
lea ecx, [esp + 0x18]
lea esi, [eax + ebp]
mov al, byte [eax + ebp]
mov byte [esp + 0x18], 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_]
mov ecx, 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 edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
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_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_]
mov eax, dword [edi + 0x18]
lea ecx, [esp + 0x24]
add eax, ebp
mov byte [esp + 0xa4], bl
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa4], 3
test eax, eax
je 0x41078d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41078d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x410734
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 fcn.0040f7b0
add esp, 8
test al, al
je 0x41078d
mov ecx, dword [esp + 0x28]
mov edx, 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]
test ecx, ecx
jne 0x410753
mov ecx, edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41075d
mov eax, edx
push 0
push ecx
push eax
call fcn.00410a90
add esp, 0xc
test al, al
jne 0x41078d
mov esi, dword [edi + 8]
push 0x45c6c0
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esi + ebp]
push eax
push 0x45c6c0
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]
mov byte [esp + 0xa8], 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_]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], 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 ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x10
mov dword [esp + 0x10], ecx
jmp 0x410690
lea ebx, [edi + 0x14]
mov ecx, ebx
call fcn.004274d0
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.004102b0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0xa8], 4
call fcn.00427150
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 1
call fcn.004270e0
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0040ff10
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0xa8], 5
call fcn.00427150
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 1
call fcn.004270e0
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004100e0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0xa8], 6
call fcn.00427150
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 1
call fcn.004270e0
lea ecx, [esp + 0x37]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004270c0
xor ebp, ebp
mov byte [esp + 0xa4], 7
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 8]
lea esi, [edi + 4]
test eax, eax
je 0x410a18
mov edx, dword [esi + 8]
sub edx, eax
mov eax, dword [esp + 0x10]
sar edx, 4
cmp eax, edx
jae 0x410a18
mov eax, dword [edi + 8]
lea ecx, [esp + 0x14]
add eax, ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa4], 8
test eax, eax
je 0x4109f3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.0040ad10
add esp, 8
mov ecx, 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 + 0xa4], 9
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
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 + 0x50]
mov byte [esp + 0xa8], 8
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 esi, dword [edi + 8]
push 0x45c6c0
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esi + ebp]
push eax
push 0x45c6c0
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_]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41092f
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 fcn.0040f7b0
add esp, 8
test al, al
je 0x4109f3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41094f
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 + 0x60]
call fcn.00409cf0
mov eax, dword [esp + 0x6a]
and eax, 0xf000
cmp eax, 0x4000
jne 0x4109dc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov eax, dword [esp + 0x28]
mov byte [esp + 0xa4], 0xa
test eax, eax
jne 0x41098d
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.00410460
add esp, 4
test al, al
je 0x4109b3
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4109a7
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 dword [sym.imp.MSVCRT.dll__wrmdir]
add esp, 4
jmp 0x4109c6
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00427be0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 8
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_]
jmp 0x4109f3
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4109e9
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 dword [sym.imp.MSVCRT.dll__wremove]
add esp, 4
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], 7
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 ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x10
mov dword [esp + 0x10], ecx
jmp 0x410878
mov ecx, esi
call fcn.004274d0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 1
call fcn.004270e0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
mov byte [esp + 0xac], 0
call fcn.00428030
mov eax, dword [ebx + 4]
push eax
call sub.MFC42u.DLL_operatordelete
xor eax, eax
add esp, 4
mov ecx, esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [esp + 0xa4], 0xffffffff
call fcn.004270e0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret