Function at 0x402de0
Capabilities:
Create process on windows
Delete directory
Delete file
Delete registry key
Delete registry value
Enumerate files on windows
Get file attributes
Query or enumerate registry key
Query or enumerate registry value
Self delete
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov eax, dword [ebx]
cmp eax, 0xd
ja case.0x402dfa.7
jmp dword [eax*4 + 0x403a94]
mov eax, dword [ebx + 4]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
cmp byte [0x408d38], al
jne 0x402e3a
push 0x409080
mov esi, 0x4091a0
jmp 0x402e54
mov ebx, 0x409080
push ebx
push esi
mov esi, 0x4091a0
push esi
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x402e5c
push ebx
push esi
call fcn.00403f50
pop ecx
pop ecx
push esi
push str.output_directory:
call fcn.004052a5
push esi
call fcn.0040558b
add esp, 0xc
jmp 0x403a70
mov eax, dword [ebx + 4]
mov esi, 0x408d38
push 0x4091a0
push esi
mov dword [ebp + 0x10], eax
call fcn.00403f50
cmp byte [0x408d38], 0
pop ecx
pop ecx
mov eax, esi
je 0x402ea8
inc eax
cmp byte [eax], 0
jne 0x402e98
cmp eax, esi
je 0x402ea8
cmp byte [eax - 1], 0x5c
je 0x402eb5
push 0x408678
push esi
call fcn.00403f95
pop ecx
pop ecx
mov eax, dword [ebx + 8]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
push edi
push esi
call fcn.00403f95
mov eax, dword [ebp + 0x10]
pop ecx
and eax, 3
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and al, 1
neg al
sbb eax, eax
inc eax
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x402f16
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402f16
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
push eax
push eax
push dword [ebp - 0xc]
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x402f8d
cmp dword [ebp - 8], 0
push esi
jne 0x402f71
push str.Error_opening_file_for_writing:_r_n____s__r_nHit_abort_to_abort_installation__r_nretry_to_retry_writing_the_file__or_r_nignore_to_skip_this_file.
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x12
push str.Nullsoft_Install_System_Error
push edi
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 3
je 0x402f82
dec eax
je 0x402efa
dec eax
je 0x403a70
jmp 0x403971
push str.skipped:
call fcn.004052a5
pop ecx
pop ecx
jmp 0x403a70
push esi
push str.aborted_when_couldnt_write_file:
jmp 0x40396a
push esi
push str.extract:
call fcn.004052a5
mov eax, dword [ebx + 0xc]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403c04
add esp, 0x14
mov edi, eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jl 0x402fc3
mov eax, edi
jmp 0x403a8f
cmp edi, 0xfffffffd
je case.0x402dfa.7
cmp edi, 0xfffffffa
je case.0x402dfa.7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x403971
and dword [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x20]
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x18c]
mov dword [ebp - 0x190], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
push 0x409080
mov esi, 0x408d38
push edi
push esi
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x40304a
push edi
push esi
call fcn.00403f50
pop ecx
pop ecx
push esi
push str.execute:
call fcn.004052a5
pop ecx
lea eax, [ebp - 0x24]
pop ecx
xor edi, edi
push eax
lea eax, [ebp - 0x190]
push eax
push 0x4091a0
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403a70
cmp dword [ebp - 0x20], edi
je 0x40308c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], edi
je 0x403a70
cmp dword [ebx + 8], 1
jne 0x403100
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [0x4092a4]
call esi
push 5
push dword [0x4092a4]
call esi
push 1
push edi
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0xf
push 0xf
lea eax, [ebp - 0x48]
push dword [0x4092a4]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x403100
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4030da
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a70
mov eax, dword [ebx + 4]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
push eax
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x403167
cmp eax, 1
je 0x403167
push 0x408d38
push str.Error_registering_DLL:__s._r_nCould_not_initialize_OLE.
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.Nullsoft_Install_System_Error
push edi
jmp 0x403a15
push 0x409080
mov esi, 0x408d38
push edi
push esi
call fcn.00405647
add esp, 0xc
test eax, eax
jne 0x403249
xor ebx, ebx
cmp byte [0x408d38], 0x2d
jne 0x40319a
cmp byte [0x408d39], 0x20
jne 0x40319a
push 2
pop ebx
lea eax, [ebx + 0x408d38]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x403222
test ebx, ebx
mov eax, str.DllUnregisterServer
jne 0x4031bf
mov eax, str.DllRegisterServer
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x4031f0
test ebx, ebx
jne 0x4031dc
push esi
push str.registered_dll:
jmp 0x4031e4
push dword [ebp + 8]
push str.unregistered_dll:
call fcn.004052a5
pop ecx
pop ecx
call dword [ebp + 0x10]
jmp 0x403217
test ebx, ebx
jne 0x403217
push esi
push str.Error_registering_DLL._r_nDllRegisterServer_not_found_in__s.
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push str.Nullsoft_Install_System_Error
push edi
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403249
test ebx, ebx
jne 0x403249
push esi
push str.Error_registering_DLL._r_nCould_not_load__s.
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push str.Nullsoft_Install_System_Error
push edi
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0xc], 0
jne 0x403a70
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x403a70
mov eax, dword [ebx + 4]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWARENetscapeNetscape_Navigator
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a70
and dword [ebp - 4], eax
mov esi, 0x408d38
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x2c]
inc dword [ebp - 4]
push eax
lea eax, [ebp - 0x148]
mov dword [ebp - 0x2c], 0x100
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x403446
lea eax, [ebp - 0x148]
push str.Main
push eax
call fcn.00403f95
pop ecx
lea eax, [ebp - 0xc]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x148]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032ae
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x104
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push 0
push str.Plugins_Directory
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403438
cmp dword [ebp - 0x10], 1
jne 0x403438
push 0x408678
push esi
call fcn.00403f95
push edi
push esi
call fcn.00403f95
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403377
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [ebx], 4
mov dword [ebp + 0x10], eax
je 0x4033b8
cmp eax, 0xffffffff
je 0x4033b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jmp 0x4033bc
mov dword [ebp + 0x10], 1
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4033e0
push 0x40005
push str.Nullsoft_Install_System_Error
push str.Error_accessing_Netscape_plug_in._r_nMake_sure_all_windows_of_Netscape_are_closed._r_nHit_Retry_to_try_again__Cancel_to_skip
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x403426
jmp 0x403361
cmp dword [ebx], 4
jne 0x403426
mov eax, dword [ebx + 8]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403c04
add esp, 0xc
mov dword [ebp - 0x14], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
push esi
jge 0x40341f
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], 0xfffffffd
je case.0x402dfa.7
jmp 0x403438
push str.installed_netscape_plug_in:
jmp 0x403431
cmp dword [ebx], 0xb
jne 0x403438
push esi
push str.removed_netscape_plug_in:
call fcn.004052a5
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4032ae
push dword [ebp - 8]
jmp 0x4034da
mov eax, dword [ebx + 8]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
cmp dword [ebx + 0xc], 0xffffffff
mov eax, dword [ebx + 4]
je 0x4034e5
lea ecx, [ebp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403a70
mov eax, dword [ebx + 0xc]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne 0x4034d7
push 0x409080
push edi
push esi
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x4034cd
push edi
push esi
call fcn.00403f50
pop ecx
pop ecx
push esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a70
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x403a70
mov eax, dword [ebx + 8]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov eax, dword [ebx + 0xc]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov dword [ebp + 0x10], ecx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4036ae
cmp dword [ebp + 0x10], 1
jne 0x4035ff
lea eax, [ebp - 0x14c]
push 0x104
push eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne 0x4036a5
mov ebx, 0x409080
lea eax, [ebp - 0x14c]
push ebx
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x4035be
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00403f50
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x4035e2
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.00403f50
pop ecx
pop ecx
lea eax, [ebp - 0x294]
push eax
call fcn.00403f3c
pop ecx
inc eax
push eax
lea eax, [ebp - 0x294]
push eax
push 1
jmp 0x403693
cmp dword [ebp + 0x10], 2
jne 0x403637
push 0x409080
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x40362d
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.00403f50
pop ecx
pop ecx
add ebx, 0x10
push 4
push ebx
push 4
jmp 0x403693
cmp dword [ebp + 0x10], 3
jne 0x4036a5
lea eax, [ebp - 0x494]
push 0x200
push eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403dde
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x4036a5
push 0x409080
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x403689
lea eax, [ebp - 0x14c]
push edi
push eax
call fcn.00403f50
pop ecx
pop ecx
lea eax, [ebp - 0x494]
push esi
push eax
push 3
lea eax, [ebp - 0x14c]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], 0
jle case.0x402dfa.7
cmp dword [ebp + 0x10], 4
jge case.0x402dfa.7
jmp 0x403a70
mov esi, 0x104
lea eax, [ebp - 0x14c]
push esi
push eax
mov eax, dword [ebx + 4]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
lea eax, [ebp - 0x294]
push esi
push eax
mov eax, dword [ebx + 8]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov eax, dword [ebx + 0xc]
push esi
add eax, dword [ebp + 0xc]
mov esi, 0x408d38
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov eax, dword [ebx + 0x10]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov ebx, 0x409080
lea eax, [ebp - 0x598]
push ebx
push edi
push eax
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x40377f
lea eax, [ebp - 0x598]
push edi
push eax
call fcn.00403f50
pop ecx
pop ecx
push ebx
push esi
push edi
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x403797
push esi
push edi
call fcn.00403f50
pop ecx
pop ecx
lea eax, [ebp - 0x294]
push ebx
push eax
lea eax, [ebp - 0x398]
push eax
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x4037c7
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x398]
push eax
call fcn.00403f50
pop ecx
pop ecx
lea eax, [ebp - 0x14c]
push ebx
push eax
push esi
call fcn.00405647
add esp, 0xc
test eax, eax
je 0x4037eb
lea eax, [ebp - 0x14c]
push eax
push esi
call fcn.00403f50
pop ecx
pop ecx
lea eax, [ebp - 0x598]
push eax
lea eax, [ebp - 0x398]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x403a70
mov eax, dword [ebx + 4]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
push 0x409080
mov edi, 0x408c34
push esi
push edi
call fcn.00405647
add esp, 0xc
test eax, eax
jne 0x403a70
push edi
push esi
mov ebx, esi
call fcn.00403f50
cmp byte [0x408d38], 0
pop ecx
pop ecx
je 0x40386d
inc ebx
cmp byte [ebx], 0
jne 0x40385b
cmp ebx, esi
jbe 0x40386d
cmp byte [ebx], 0x5c
je 0x40386d
dec ebx
jmp 0x403861
and byte [ebx], 0
lea eax, [ebp - 0x3d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403a70
test byte [ebp - 0x3d4], 0x10
jne 0x4038bb
lea eax, [ebp - 0x3a8]
push eax
push esi
push 0x4083b0
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str.delete_file:
call fcn.004052a5
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x3d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403889
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x403a70
mov eax, dword [ebx + 8]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x403979
mov eax, dword [ebx + 0xc]
mov edi, 0x408c34
add eax, dword [ebp + 0xc]
push 0x104
push edi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
push eax
push esi
call ebx
test eax, eax
je 0x403a70
push 2
push str.Nullsoft_Install_System_Error
push edi
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 3
je 0x403964
cmp eax, 5
je 0x403a70
push 0
push esi
jmp 0x403933
push esi
push str.aborted_on_user_abort:
call fcn.004052a5
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x403a8f
cmp eax, 1
jne 0x4039a0
xor edi, edi
push edi
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x403a70
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x403a70
xor ebx, ebx
cmp eax, ebx
jne 0x403a70
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push ebx
mov dword [ebp + 0xc], 8
push esi
call edi
cmp eax, ebx
je 0x403a70
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test eax, eax
jl 0x403a70
push ebx
push esi
jmp 0x4039b9
mov eax, dword [ebx + 8]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
push dword [ebx + 4]
push str.Nullsoft_Install_System_Error
push esi
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403a70
mov eax, dword [ebx + 4]
mov esi, 0x408d38
add eax, dword [ebp + 0xc]
push 0x104
push esi
push eax
push dword [ebp + 8]
call fcn.00403baf
add esp, 0x10
test eax, eax
jne case.0x402dfa.7
push 0x409080
mov edi, 0x408c34
push esi
push edi
call fcn.00405647
add esp, 0xc
test eax, eax
jne 0x403a70
push edi
push str.remove_directory:
call fcn.004052a5
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x403a8f
push 0x10
push str.Nullsoft_Install_System_Error
push str.Installer_corrupted.
push dword [0x4092a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret