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

Disassembly:
push ebp
push edi
push esi
mov esi, 0x20
push ebx
sub esp, 0x15c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [eax]
cmp dx, 0x22
jne 0x401fda
movzx edx, word [eax + 2]
mov esi, 0x22
add eax, 2
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp si, dx
je 0x402005
test dx, dx
jne 0x401ff5
jmp 0x402005
cmp dx, si
je 0x402005
mov dword [esp], eax
call ebx
movzx edx, word [eax]
sub esp, 4
test dx, dx
jne 0x401ff0
mov dword [esp], eax
call ebx
mov ebx, eax
movzx eax, word [eax]
sub esp, 4
cmp ax, 0x20
jne 0x40202d
lea esi, cs:[esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x402020
mov edx, 1
cmp ax, 0x2f
jne 0x40208b
cmp word [ebx + 2], 0x53
je 0x4020a0
mov dword [esp], 0x8001
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call edi
sub esp, 4
mov esi, eax
mov dword [esp], 0
call dword [sym.imp.ole32.dll_OleInitialize]
movzx eax, word [ebx + 2]
sub esp, 4
cmp ax, 0x44
je 0x402261
cmp ax, 0x54
je 0x4022da
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp], esi
call edi
xor edx, edx
sub esp, 4
add esp, 0x15c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 4], 0x800
xor edi, edi
mov dword [esp], 0x40
call ebx
sub esp, 8
mov ebp, eax
mov dword [esp + 4], 0x800
mov dword [esp], 0x40
call ebx
sub esp, 8
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareNSIS.Library.RegTool.v3
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jns 0x402113
jmp 0x402210
add edi, 1
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4021e8
lea eax, [esp + 0x38]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
js 0x402110
lea eax, [esp + 0x40]
lea esi, [esp + 0x44]
mov dword [esp + 0x44], 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4040b6
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
js 0x4021ba
cmp dword [esp + 0x3c], 4
je 0x402329
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x402110
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], str.SoftwareNSIS.Library.RegTool.v3
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], 0x400
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
test eax, eax
jne 0x4022b5
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp], ebp
call ebx
sub esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call ebx
xor edx, edx
sub esp, 4
jmp 0x40208b
add ebx, 4
mov dword [esp + 8], 8
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40207b
mov dword [esp + 4], str.DllRegisterServer
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4022a4
call eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x40207b
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
jmp 0x402240
lea eax, [esp + 0x50]
add ebx, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.OLEAUT32.dll_LoadTypeLib]
sub esp, 8
test eax, eax
js 0x40207b
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
sub esp, 0xc
mov eax, dword [esp + 0x50]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x40207b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4021ba
mov edx, 1
mov dword [esp + 0x2c], edi
mov edi, edx
jmp 0x402355
add edi, 1
cmp dword [esp + 0x40], edi
jb 0x40243e
lea eax, [esp + 0x50]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4040c2
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x4a]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], 6
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
js 0x402348
cmp dword [esp + 0x3c], 1
jne 0x402348
lea eax, [esp + 0x50]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4040d2
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], 0x800
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
js 0x402348
cmp dword [esp + 0x3c], 1
jne 0x402348
xor eax, eax
cmp word [esp + 0x4c], 0x58
sete al
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x4a]
mov dword [esp], eax
call fcn.00401540
jmp 0x402348
mov edi, dword [esp + 0x2c]
jmp 0x4021ba