Function at 0x40135b
Capabilities:
Accept command line arguments
Delete registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x98
push ebx
push esi
mov bl, 0x20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
cmp cl, 0x22
jne 0x401377
inc eax
mov bl, cl
mov cl, byte [eax]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x401388
cmp cl, bl
je 0x40138c
push eax
call esi
mov cl, byte [eax]
test cl, cl
jne 0x40137f
push eax
call esi
mov esi, eax
jmp 0x401394
inc esi
mov al, byte [esi]
cmp al, 0x20
je 0x401393
cmp al, 0x2f
je 0x4013a6
xor eax, eax
inc eax
jmp 0x4015ce
cmp byte [esi + 1], 0x53
push edi
jne 0x401589
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebp
mov ebp, 0x400
push ebp
push 0x40
call esi
push ebp
push 0x40
mov ebx, eax
call esi
mov edi, eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SoftwareNSIS.Library.RegTool.v3
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
js 0x401562
push 0x400
xor ebp, ebp
push ebx
push ebp
jmp 0x40152f
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ebx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
js 0x401527
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.count
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
js 0x401511
cmp dword [esp + 0x14], 4
jne 0x401511
xor esi, esi
inc esi
cmp dword [esp + 0x24], esi
jb 0x401511
push esi
lea eax, [esp + 0x2c]
push str._u.mode
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x10], 3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
js 0x401506
cmp dword [esp + 0x14], 1
jne 0x401506
push esi
lea eax, [esp + 0x2c]
push str._u.file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [esp + 0x10], 0x400
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
js 0x401506
cmp dword [esp + 0x14], 1
jne 0x401506
xor eax, eax
cmp byte [esp + 0x21], 0x58
sete al
push eax
push edi
push dword [esp + 0x28]
call fcn.004010dd
add esp, 0xc
inc esi
cmp esi, dword [esp + 0x24]
jbe 0x401464
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [esp + 0x1c]
call fcn.00401031
pop ecx
pop ecx
push 0x400
inc ebp
push ebx
push ebp
push dword [esp + 0x24]
call fcn.004010af
add esp, 0x10
test eax, eax
je 0x4013fd
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareNSIS.Library.RegTool.v3
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, 0x400
push ebp
push edi
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop ebp
test eax, eax
je 0x40157b
push edi
call fcn.00401000
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
push edi
call esi
jmp 0x4015cb
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0
mov ebx, eax
call dword [sym.imp.ole32.dll_OleInitialize]
mov cl, byte [esi + 1]
cmp cl, 0x44
jne 0x4015b3
lea ecx, [esi + 2]
push ecx
call fcn.0040104f
jmp 0x4015c1
cmp cl, 0x54
jne 0x4015c2
lea eax, [esi + 2]
push eax
call fcn.00401891
pop ecx
call dword [sym.imp.ole32.dll_OleUninitialize]
push ebx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x98
ret