Function at 0x402bf1
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40c010]
mov dword [ebp - 4], 0x40cc6c
cmp eax, 0x80000002
je 0x402c14
mov dword [ebp - 4], 0x40cc58
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0xc]
push edi
push ecx
push edi
push 4
push edi
push edi
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x402c69
cmp eax, 5
jne 0x402c55
push 0x10
push edi
push 0x40cbfc
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x402ef4
push edi
push 0x40cbe8
push esi
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, 0x40e860
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x40cbd4
push eax
call edi
lea eax, [ebp - 0x11c]
push 0x40c9d4
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov dword [0x40e844], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_time]
mov ebx, dword [sym.imp.MSVCR71.dll_localtime]
lea eax, [ebp - 0x10]
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
call ebx
push eax
push 0x40cba4
lea eax, [ebp - 0x11c]
push 0x105
push eax
call dword [sym.imp.MSVCR71.dll_strftime]
mov ebx, dword [sym.imp.MSVCR71.dll_fprintf]
lea eax, [ebp - 0x11c]
push eax
push dword [0x40e844]
call ebx
push 0x40d480
push 0x40cb98
push dword [0x40e844]
call ebx
add esp, 0x48
push dword [ebp - 4]
push 0x40cb84
push dword [0x40e844]
call ebx
push dword [0x40e8b0]
lea eax, [ebp - 0x21c]
push dword [0x40ea44]
push esi
push 0x40cb78
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0x20006
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402d6c
push 0
lea eax, [ebp - 0x21c]
push 0x40cb60
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 1
jne 0x402d97
lea eax, [ebp - 0x21c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x40cb48
push dword [0x40e844]
call ebx
add esp, 0x10
push 0x40d5a0
lea eax, [ebp - 0x11c]
push dword [0x40e8b0]
push dword [0x40ea44]
push 0x40cb38
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR71.dll_strlen
add esp, 0x18
inc eax
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push 0x40cb2c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402dff
push 0
lea eax, [ebp - 0x11c]
push 0x40cb14
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push 0x40cb2c
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x40caf4
push dword [0x40e844]
call ebx
push esi
lea eax, [ebp - 0x11c]
push dword [ebp + 8]
push 0x40cae4
push eax
call edi
lea eax, [ebp - 0x11c]
push 0x40cae0
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
push eax
push 1
push dword [0x40e91c]
mov dword [ebp - 4], eax
push dword [0x40d584]
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x40
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_fclose]
push esi
lea eax, [ebp - 0x11c]
push dword [ebp + 8]
push esi
push dword [ebp + 8]
push 0x40cab4
push eax
call edi
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR71.dll_strlen
add esp, 0x20
inc eax
mov esi, 0x40caa4
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402ecc
push 0
lea eax, [ebp - 0x11c]
push 0x40cb14
push eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x40caf4
push dword [0x40e844]
call ebx
add esp, 0x18
push 1
pop eax
pop ebx
pop edi
pop esi
leave
ret