Function at 0x402a10
Capabilities:
Accept command line arguments
Delete directory
Delete file
Get common file path
Get installed programs
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fea6
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x5a1ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x530], ebx
call fcn.004054f0
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0040d200
or edi, 0xffffffff
mov dword [ebp - 0x528], eax
test eax, eax
je 0x402b12
call fcn.0040a604
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402a89
push 0x80004005
call fcn.00401b60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x534], esi
push 0x65
mov dword [ebp - 4], 0
call fcn.0040a25f
test eax, eax
je 0x402abf
push 0x65
push eax
lea ecx, [ebp - 0x534]
call fcn.00402950
mov esi, dword [ebp - 0x534]
cmp dword [esi - 0xc], 0
je 0x402af2
mov eax, dword [ebp - 0x528]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0
push 0
push 0x800
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x528]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
or edi, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b12
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x3a4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0x3a4]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
call fcn.00401080
push 0x104
lea esi, [ebx + 0x94]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INF_
push 0x104
push esi
call fcn.004042f0
lea eax, [ebx + 0x198]
mov edx, 0x104
mov ecx, eax
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x402b8b
mov al, byte [esi + ecx]
test al, al
je 0x402b8b
mov byte [ecx], al
inc ecx
dec edx
jne 0x402b72
jmp 0x402b8f
test edx, edx
jne 0x402b90
dec ecx
push str.usb.inf
push 0x104
lea eax, [ebx + 0x198]
push eax
mov byte [ecx], 0
call fcn.004042f0
lea eax, [ebx + 0x29c]
lea esi, [ebx + 0x94]
mov edx, 0x104
mov ecx, eax
sub esi, eax
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x402bd9
mov al, byte [esi + ecx]
test al, al
je 0x402bd9
mov byte [ecx], al
inc ecx
dec edx
jne 0x402bc0
jmp 0x402bdd
test edx, edx
jne 0x402bde
dec ecx
push str.usbvideo.inf
push 0x104
lea eax, [ebx + 0x29c]
push eax
mov byte [ecx], 0
call fcn.004042f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x524]
call fcn.00401500
mov eax, dword [ebp - 0x524]
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
jl 0x403437
push 0x5513e8
push eax
call fcn.00525a22
mov ecx, eax
mov eax, dword [ebp - 0x524]
add esp, 8
test ecx, ecx
je 0x402c5e
sub ecx, eax
js 0x402c5e
push str.Parameters:__d
call fcn.004011e0
add esp, 4
lea eax, [ebx + 0x94]
push eax
mov ecx, ebx
call fcn.00401d80
jmp 0x403444
cmp dword [eax - 0xc], 0
jl 0x403437
push 0x5513fc
push eax
call fcn.00525a22
add esp, 8
test eax, eax
je 0x403437
sub eax, dword [ebp - 0x524]
js 0x403437
push str.Parameters:__u
call fcn.004011e0
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00525070
add esp, 0x10
call fcn.0040a604
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402cc6
push 0x80004005
call fcn.00401b60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x52c], eax
mov byte [ebp - 4], 2
call fcn.0040a604
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402cf6
push 0x80004005
call fcn.00401b60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x538], eax
mov byte [ebp - 4], 3
call fcn.0040a604
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402d26
push 0x80004005
call fcn.00401b60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x53c], eax
mov byte [ebp - 4], 4
call fcn.0040a604
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402d56
push 0x80004005
call fcn.00401b60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x528], eax
lea ecx, [ebp - 0x56c]
mov byte [ebp - 4], 5
call fcn.0040a818
mov byte [ebp - 4], 6
call fcn.0040a604
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402d95
push 0x80004005
call fcn.00401b60
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x534], eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00402860
test eax, eax
push 0x104
lea eax, [ebp - 0x114]
push eax
jne 0x402dd4
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x5a
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallE0A7ED39_8CD6_4351_93C3_69CCA00D12B4
jmp 0x402de6
push str.ProgramFiles_x86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x66
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstallE0A7ED39_8CD6_4351_93C3_69CCA00D12B4
lea ecx, [ebp - 0x534]
call fcn.00404250
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e00
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x52c]
call fcn.00404250
push str.InstallShield_Installation_InformationE0A7ED39_8CD6_4351_93C3_69CCA00D12B4_
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x520]
push eax
call fcn.004017d0
push str.setup.exe
push eax
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 8
call fcn.004017d0
add esp, 0x18
push eax
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 9
call fcn.00401760
mov edx, dword [ebp - 0x518]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402e80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x520]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.InstallShield_Installation_InformationE0A7ED39_8CD6_4351_93C3_69CCA00D12B4_
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x520]
push eax
call fcn.004017d0
push str.setup.ini
push eax
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 0xa
call fcn.004017d0
add esp, 0x18
push eax
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 0xb
call fcn.00401760
mov edx, dword [ebp - 0x518]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x520]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.InstallShield_Installation_InformationE0A7ED39_8CD6_4351_93C3_69CCA00D12B4_
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x520]
push eax
call fcn.004017d0
push str.usetup.iss
push eax
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 0xc
call fcn.004017d0
add esp, 0x18
push eax
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0xd
call fcn.00401760
mov edx, dword [ebp - 0x518]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402f8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x520]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402fb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x551570
push 0x551574
lea ecx, [ebp - 0x528]
call fcn.00403fa0
mov esi, dword [ebp - 0x538]
push 0
push esi
lea ecx, [ebp - 0x56c]
call fcn.0040aa5c
mov edi, dword [ebp - 0x53c]
test eax, eax
je 0x402ffd
push 0
push edi
lea ecx, [ebp - 0x56c]
call fcn.0040aa5c
test eax, eax
je 0x402ffd
mov ebx, 1
jmp 0x402fff
xor ebx, ebx
lea ecx, [ebp - 0x56c]
call fcn.0040aa10
mov eax, dword [ebp - 0x524]
cmp ebx, 1
mov ebx, dword [ebp - 0x534]
jne 0x403134
cmp dword [eax - 0xc], 0
jl 0x4030e6
push 0x551578
push eax
call fcn.00525a22
add esp, 8
test eax, eax
je 0x4030e6
sub eax, dword [ebp - 0x524]
js 0x4030e6
push str.Call_Setup_Uninstall_Program___Silent_Uninstall
call fcn.004011e0
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x520]
push str.setup__removeonly__s__f1_
push eax
call fcn.004018a0
push 0x5515ac
push eax
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 0xe
call fcn.004017d0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x528]
mov byte [ebp - 4], 0xf
call fcn.00401760
mov edx, dword [ebp - 0x518]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x520]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4030de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x528]
jmp 0x4030f8
push str.Call_Setup_Uninstall_Program
call fcn.004011e0
add esp, 4
push str.setup__removeonly
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x518], esp
push eax
call fcn.00401c60
mov ecx, dword [ebp - 0x518]
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp - 0x530]
add esp, 4
call fcn.00401b90
mov ecx, dword [ebp - 0x530]
mov eax, dword [ecx]
call dword [eax + 0x17c]
jmp 0x403383
cmp dword [eax - 0xc], 0
jl 0x403171
push 0x551578
push eax
call fcn.00525a22
add esp, 8
test eax, eax
je 0x403171
sub eax, dword [ebp - 0x524]
js 0x403171
mov eax, dword [ebp - 0x530]
push 0
push 0
push 0x465
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x403383
push 0x3ff
lea eax, [ebp - 0x513]
push 0
push eax
mov byte [ebp - 0x514], 0
call fcn.00525070
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
push 0xf003f
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x54c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x550]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x520]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x518]
call fcn.00401500
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x544]
push str.Do_you_want_to_remove
push eax
mov byte [ebp - 4], 0x10
call fcn.004018a0
push 0x551614
push eax
lea eax, [ebp - 0x540]
push eax
mov byte [ebp - 4], 0x11
call fcn.004017d0
add esp, 0x18
push 4
push str.Warning
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x51c], eax
mov eax, dword [ebp - 0x540]
add eax, 0xfffffff0
mov dword [ebp - 0x548], eax
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40326f
mov ecx, dword [eax]
push dword [ebp - 0x548]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x544]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403293
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x51c], 6
jne 0x403344
push str.RealtekRtsUvcRtsUvcUninst.exe
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.004017d0
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x51c]
call fcn.004012c0
push str.RealtekRtsUvcRtsUvcUninst.log
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.004017d0
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x51c]
call fcn.004012c0
push str.RealtekRtsUvc
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.004017d0
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x51c]
call fcn.004012c0
mov eax, dword [ebp - 0x530]
push 0
push 0
push 0x465
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40335f
push str.User_Canceled
call fcn.004011e0
mov ecx, dword [ebp - 0x530]
add esp, 4
mov eax, dword [ecx]
call dword [eax + 0x17c]
mov edx, dword [ebp - 0x518]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403383
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4033a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x56c]
mov byte [ebp - 4], 5
call fcn.0040a9c0
mov edx, dword [ebp - 0x528]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4033d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4033f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403412
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x52c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40344e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40344e
push str.Parameters:_Undefined
call fcn.004011e0
add esp, 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x17c]
mov edx, dword [ebp - 0x524]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x403472
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052505f
mov esp, ebp
pop ebp
ret