Function at 0x401fd0
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
push ebx
mov ebx, 0x20
sub esp, 0x15c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [eax]
cmp dx, 0x22
jne 0x401ffa
movzx edx, word [eax + 2]
mov ebx, 0x22
add eax, 2
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp dx, bx
jne 0x402020
jmp 0x402025
mov dword [esp], eax
call esi
movzx edx, word [eax]
sub esp, 4
cmp dx, bx
je 0x402025
test dx, dx
jne 0x402010
mov dword [esp], eax
call esi
mov ebx, eax
movzx eax, word [eax]
sub esp, 4
cmp ax, 0x20
jne 0x40204d
lea esi, [esi]
nop
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x402040
mov edx, 1
cmp ax, 0x2f
jne 0x4020ab
cmp word [ebx + 2], 0x53
je 0x4020c0
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 0x402289
cmp ax, 0x54
je 0x402302
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
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
js 0x402230
xor ebx, ebx
jmp 0x402133
add ebx, 1
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebp
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x402208
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 0x402130
lea eax, [esp + 0x44]
lea edi, [esp + 0x3c]
mov dword [esp + 0x44], 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4040b6
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
js 0x4021dc
cmp dword [esp + 0x3c], 4
je 0x402351
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 0x402130
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 0x4022dd
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
mov eax, edx
add esp, 0x15c
pop ebx
pop esi
pop edi
pop ebp
ret
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 0x40209b
mov dword [esp + 4], str.DllRegisterServer
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4022cc
call eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x40209b
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 0x402260
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 0x40209b
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 0x40209b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4021dc
mov edx, 1
mov dword [esp + 0x2c], ebx
mov ebx, edx
jmp 0x40237d
add ebx, 1
cmp dword [esp + 0x40], ebx
jb 0x402466
lea eax, [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4040c2
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 6
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
js 0x402370
cmp dword [esp + 0x3c], 1
jne 0x402370
lea eax, [esp + 0x50]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4040d2
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x800
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp], eax
call esi
sub esp, 0x18
test eax, eax
js 0x402370
cmp dword [esp + 0x3c], 1
jne 0x402370
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 0x402370
mov ebx, dword [esp + 0x2c]
jmp 0x4021dc