Function at 0x403c46
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00406770
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 3
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0xa
je 0x403c7e
push edi
push edi
push str.Wrong_number_of_args
push edi
jmp 0x403fba
mov esi, dword [ebp + 0xc]
push 0x40c174
push dword [esi + 4]
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403c9d
push edi
push edi
push str.2._arg_is_not__u
jmp 0x403c78
push 0x40c15c
push dword [esi + 8]
call dword [sym.imp.MSVCR71.dll_fopen]
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
jne 0x403cbd
push edi
push edi
push str.could_not_open_logfile
jmp 0x403c78
push 0x28
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x403cd7
push str.Out_of_memory
push edi
jmp 0x403e6f
push dword [ebp + 8]
lea eax, [ebp - 0x1018]
push 0x1000
push eax
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
je 0x403daa
push 0x28
pop edi
lea eax, [ebp - 0x1018]
push eax
call sub.MSVCR71.dll_strlen
pop ecx
mov esi, eax
mov eax, dword [sym.imp.MSVCR71.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x403d28
movsx eax, byte [ebp + esi - 0x1019]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403d3e
mov ecx, dword [sym.imp.MSVCR71.dll__pctype]
movsx eax, byte [ebp + esi - 0x1019]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x403d45
dec esi
jmp 0x403d09
and byte [ebp + esi - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.MSVCR71.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
jl 0x403d85
add dword [ebp - 8], 0xa
add edi, 0x28
push edi
push ebx
call dword [sym.imp.MSVCR71.dll_realloc]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x403e68
push dword [ebp + 8]
lea eax, [ebp - 0x1018]
push 0x1000
push eax
call dword [sym.imp.MSVCR71.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x403cfa
mov esi, dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll_fclose]
mov dword [esp], 0x40403c
push 4
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.MSVCR71.dll_qsort]
add esp, 0x10
push 0x24
push str.Please_confirm
push str.Are_you_sure_you_want_to_remove_nthis_package_from_your_computer_
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x404035
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
mov dword [0x40b010], 0x80000002
mov edi, 0x40c390
jle 0x403f98
mov esi, dword [sym.imp.MSVCR71.dll_sscanf]
push 2
mov dword [ebp - 8], ebx
pop ebx
mov eax, dword [ebp - 8]
push dword [eax]
push edi
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403f82
mov eax, dword [ebp - 8]
mov edi, dword [eax]
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Root_Key:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x403e8d
lea eax, [ebp - 0x1018]
push str.HKEY_CURRENT_USER
push eax
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x403e7b
mov dword [0x40b010], 0x80000001
jmp 0x403f82
push str.Out_of_memory
push 0
call fcn.00401a7b
pop ecx
pop ecx
jmp 0x404037
call fcn.00401d6b
test eax, eax
je 0x403faa
jmp 0x403f82
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Made_Dir:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x403ed9
push edi
call fcn.00403a34
test eax, eax
pop ecx
je 0x403eba
inc dword [ebp - 0x14]
jmp 0x403f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x403f82
cmp eax, 3
je 0x403f82
inc dword [ebp - 4]
jmp 0x403f82
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_File_Copy:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
je 0x403f0d
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_File_Overwrite:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x403f1d
push edi
call fcn.004039e4
test eax, eax
pop ecx
je 0x403eba
inc dword [ebp - 0xc]
jmp 0x403f82
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Reg_DB_Key:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x403f3f
push edi
call fcn.00403858
jmp 0x403f81
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Reg_DB_Value:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x403f61
push edi
call fcn.0040391e
jmp 0x403f81
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Run_Script:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x403f82
push edi
call fcn.00403a84
pop ecx
inc dword [ebp - 0x18]
add dword [ebp - 8], 4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x403e0e
mov esi, dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403fc5
inc dword [ebp - 0xc]
jmp 0x403fd9
push 0x10
push 0
push str.You_do_not_seem_to_have_sufficient_access_rights_non_this_machine_to_uninstall_this_software
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
pop eax
jmp 0x404037
push dword [esi + 8]
inc dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a7b
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x403fff
push dword [ebp - 4]
lea eax, [ebp - 0x1018]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push str._d_files_and__d_directories_removed_n_d_files_or_directories_could_not_be_removed
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x40401a
push dword [ebp - 0x14]
lea eax, [ebp - 0x1018]
push dword [ebp - 0xc]
push str._d_files_and__d_directories_removed
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x40
lea eax, [ebp - 0x1018]
push str.Uninstall_Finished_
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00403734
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret