Function at 0x4022c0
Capabilities:
Accept command line arguments
Create thread
Delete file
Delete registry key
Enumerate files on windows
Get installed programs
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x242c
call fcn.00402be0
mov eax, dword [0x44f044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x242c], ebx
call fcn.00402130
push 0x400
lea eax, [ebp - 0xc14]
push eax
push 0x6b
push 0
call fcn.00401260
push 0x400
lea eax, [ebp - 0x1414]
push eax
push 0x6a
push 0
call fcn.00401260
push 0x400
lea eax, [ebp - 0x1c14]
push eax
push 0x6f
push 0
call fcn.00401260
push 0x400
lea eax, [ebp - 0x2414]
push eax
push 0x6e
push 0
call fcn.00401260
add esp, 0x40
push 0x400
push 0x44fc78
push 0x6c
push 0
call fcn.00401260
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._silent
push eax
call fcn.0040391c
add esp, 8
test eax, eax
jne 0x40239b
push 0x34
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0x1414]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40239b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
push 0
push 0x402260
call fcn.004217b6
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x241c]
add esp, 0xc
push 0
push eax
push 0
push 0xf003f
push 0
push 0x4459f0
push 0
push str.SoftwareMentorGraphicsMentorGraphicsJI
push 0x80000002
call esi
test eax, eax
je 0x402401
push 0
lea eax, [ebp - 0x241c]
push eax
push 0
push 0xf003f
push 0
push 0x4459f0
push 0
push str.SoftwareMentorGraphicsMentorGraphicsJI
push 0x80000001
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x2424]
push eax
push 0
push 0
push 0
push str.InstPath
push dword [ebp - 0x241c]
call esi
mov eax, dword [ebp - 0x2424]
inc eax
push eax
push 2
call fcn.0040cfe8
add esp, 8
mov dword [0x44fa18], eax
lea ecx, [ebp - 0x2424]
push ecx
push eax
push 0
push 0
push str.InstPath
push dword [ebp - 0x241c]
call esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [0x44fa18]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ce73
add esp, 8
test eax, eax
je 0x4024d0
push dword [0x44fa18]
call fcn.0040cff3
push 0x105
push 2
call fcn.0040cfe8
lea ecx, [ebp - 0x20c]
mov dword [0x44fa18], eax
push ecx
push 0x104
push eax
call fcn.0040cd1b
add esp, 0x18
mov dword [section..data], 0
push edi
push dword [0x44fa18]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x44fa20
push str.._tmp
mov dword [ebp - 0x2420], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x44fa20
push eax
mov dword [0x44f004], eax
call ebx
test eax, eax
je 0x4025e4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
nop word [eax + eax]
push 0x445904
push 0x44fa4c
call fcn.0040ce73
add esp, 8
test eax, eax
je 0x4025cf
push 0x445908
push 0x44fa4c
call fcn.0040ce73
add esp, 8
test eax, eax
je 0x4025cf
push 0x4459f0
push 0x44fa4c
call fcn.0040ce73
add esp, 8
test eax, eax
je 0x4025cf
test byte [0x44fa20], 0x10
je 0x4025cf
push 0x44fa4c
call fcn.0040f0ff
add esp, 4
mov dword [ebp - 0x2420], 0xffffffff
test eax, eax
jle 0x4025cf
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4025cf
lea eax, [ebp - 0x2420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x2420], 0x103
je 0x402765
push esi
call edi
push 0x44fa20
push dword [0x44f004]
call ebx
test eax, eax
jne 0x402530
push dword [0x44f004]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x44fa18]
lea edx, [ebp - 0x414]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402600
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402620
lea eax, [ebp - 0x414]
mov ecx, 0x12
mov esi, str.dongledongleDriver.exe__uninstall
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040f649
add esp, 4
cmp dword [section..data], 0
je 0x4026fc
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x2418]
push eax
push 4
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x402696
lea eax, [ebp - 0x2418]
push eax
push 4
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000001
call esi
test eax, eax
jne 0x4026a3
push str.MentorGraphicsJI
push dword [ebp - 0x2418]
call edi
lea eax, [ebp - 0x2418]
push eax
push 4
push 0
push str.SoftwareMentorGraphics
push 0x80000002
call esi
test eax, eax
je 0x4026d9
lea eax, [ebp - 0x2418]
push eax
push 4
push 0
push str.SoftwareMentorGraphics
push 0x80000001
call esi
test eax, eax
jne 0x4026e6
push str.MentorGraphicsJI
push dword [ebp - 0x2418]
call edi
call fcn.00401a80
push 0x17
call fcn.00401c90
push 0x17
call fcn.00401ee0
add esp, 8
call fcn.00401560
push 0x445b74
lea eax, [ebp - 0x2428]
push 0x445b78
push eax
call fcn.00421244
add esp, 0xc
test eax, eax
jne 0x402742
push dword [ebp - 0x2428]
call fcn.00401770
push dword [ebp - 0x2428]
call fcn.0042130d
add esp, 8
push str...uninstallmanifest
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x242c]
call fcn.00401310
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402bcd
mov esp, ebp
pop ebp
ret 0x10
push 0x34
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0x1c14]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
cmp eax, 6
jne 0x40278a
call edi
jmp 0x4025e4
call edi
push dword [0x44f004]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402bcd
mov esp, ebp
pop ebp
ret 0x10