Function at 0x403e4a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00406cb0
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 0x403e82
push edi
push edi
push str.Wrong_number_of_args
push edi
jmp 0x4041be
mov esi, dword [ebp + 0xc]
push 0x40d230
push dword [esi + 4]
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x403ea1
push edi
push edi
push str.2._arg_is_not__u
jmp 0x403e7c
push 0x40d218
push dword [esi + 8]
call dword [sym.imp.MSVCR71.dll_fopen]
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
jne 0x403ec1
push edi
push edi
push str.could_not_open_logfile
jmp 0x403e7c
push 0x28
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x403edb
push str.Out_of_memory
push edi
jmp 0x404073
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 0x403fae
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 0x403f2c
movsx eax, byte [ebp + esi - 0x1019]
push 8
push eax
call dword [sym.imp.MSVCR71.dll__isctype]
pop ecx
pop ecx
jmp 0x403f42
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 0x403f49
dec esi
jmp 0x403f0d
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 0x403f89
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 0x40406c
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 0x403efe
mov esi, dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll_fclose]
mov dword [esp], 0x404240
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 0x404239
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
mov dword [0x40c010], 0x80000002
mov edi, 0x40d454
jle 0x40419c
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 0x404186
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 0x404091
lea eax, [ebp - 0x1018]
push str.HKEY_CURRENT_USER
push eax
call sub.MSVCR71.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40407f
mov dword [0x40c010], 0x80000001
jmp 0x404186
push str.Out_of_memory
push 0
call fcn.00401a6f
pop ecx
pop ecx
jmp 0x40423b
jmp section..htext
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 0x4040dd
push edi
call fcn.00403c38
test eax, eax
pop ecx
je 0x4040be
inc dword [ebp - 0x14]
jmp 0x404186
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x404186
cmp eax, 3
je 0x404186
inc dword [ebp - 4]
jmp 0x404186
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 0x404111
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 0x404121
push edi
call fcn.00403be8
test eax, eax
pop ecx
je 0x4040be
inc dword [ebp - 0xc]
jmp 0x404186
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 0x404143
push edi
call fcn.00403a5c
jmp 0x404185
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 0x404165
push edi
call fcn.00403b22
jmp 0x404185
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 0x404186
push edi
call fcn.00403c88
pop ecx
inc dword [ebp - 0x18]
add dword [ebp - 8], 4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x404012
mov esi, dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4041c9
inc dword [ebp - 0xc]
jmp 0x4041dd
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
pop eax
jmp 0x40423b
push dword [esi + 8]
inc dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401a6f
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x404203
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 0x40421e
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.00403938
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret