Function at 0x4851fe
Capabilities:
Delete file

Disassembly:
mov eax, 0x4b3902
call fcn.0049f0d0
sub esp, 0x7c
mov eax, dword [0x4f0dd0]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp eax, 3
je 0x485236
cmp eax, 2
je 0x485236
push eax
push str.scheme_package_type_is_not_user__type_d
call fcn.0044f0cd
pop ecx
jmp 0x48525d
mov ecx, dword [esi + 0x9c]
mov eax, dword [esi + 0x98]
jmp 0x48524b
cmp dword [eax], ebx
je 0x48524f
add eax, 4
cmp eax, ecx
jne 0x485244
cmp eax, ecx
jne 0x485265
push str.scheme_not_found_is_package_
call fcn.0044f0cd
pop ecx
xor al, al
jmp 0x4853e2
push edi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x94]
call fcn.00460c69
mov ecx, ebx
call fcn.00486075
test eax, eax
mov dword [ebp - 0x68], eax
je 0x4852a1
lea edi, [esi + 0xa4]
mov ecx, dword [edi]
push eax
call fcn.00483186
mov ecx, dword [edi]
call fcn.004836c3
mov ecx, dword [ebp - 0x68]
call fcn.00482a9b
mov ecx, ebx
call fcn.004859e4
mov ecx, ebx
call fcn.00485795
test eax, eax
je 0x4853cd
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00485795
push eax
call fcn.00485d88
pop ecx
pop ecx
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.00485795
push eax
call sub.MSVCR71.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.0043c7c9
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ecx, dword [esi + 0xa4]
push eax
call fcn.004826db
push edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
cmp dword [ebp - 0x18], edi
jbe 0x4853a6
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x78], 0x414
mov dword [ebp - 0x72], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x6e], esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
cmp edi, esi
je 0x4853a6
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push edi
push str.delete_folder_failed_ret_d_folder_s
call fcn.0044f0cd
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test ebx, ebx
pop edi
je 0x4853e0
mov ecx, ebx
call fcn.00486321
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 4