Function at 0x402300
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.00402c30
mov eax, dword [0x451040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x242c], ebx
call fcn.00402170
push 0x400
lea eax, [ebp - 0xc14]
push eax
push 0x6b
push 0
call fcn.00401270
push 0x400
lea eax, [ebp - 0x1414]
push eax
push 0x6a
push 0
call fcn.00401270
push 0x400
lea eax, [ebp - 0x1c14]
push eax
push 0x6f
push 0
call fcn.00401270
push 0x400
lea eax, [ebp - 0x2414]
push eax
push 0x6e
push 0
call fcn.00401270
add esp, 0x40
push 0x400
push 0x451c88
push 0x6c
push 0
call fcn.00401270
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str._silent
push eax
call fcn.00403961
add esp, 8
test eax, eax
jne 0x4023db
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 0x4023db
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c13
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
push 0
push 0x4022a0
call fcn.00421936
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 0x4479d0
push 0
push str.SoftwareMentorGraphicsMentorGraphicsJI
push 0x80000002
call esi
test eax, eax
je 0x402441
push 0
lea eax, [ebp - 0x241c]
push eax
push 0
push 0xf003f
push 0
push 0x4479d0
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.0040d168
add esp, 8
mov dword [0x451a2c], 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 [0x451a2c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040cff3
add esp, 8
test eax, eax
je 0x402510
push dword [0x451a2c]
call fcn.0040d173
push 0x105
push 2
call fcn.0040d168
lea ecx, [ebp - 0x20c]
mov dword [0x451a2c], eax
push ecx
push 0x104
push eax
call fcn.0040ce9b
add esp, 0x18
mov dword [0x451034], 0
push edi
push dword [0x451a2c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x451a38
push str.._tmp
mov dword [ebp - 0x2420], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x451a38
push eax
mov dword [0x451038], eax
call ebx
test eax, eax
je 0x402624
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
nop word [eax + eax]
push 0x4478e4
push 0x451a64
call fcn.0040cff3
add esp, 8
test eax, eax
je 0x40260f
push 0x4478e8
push 0x451a64
call fcn.0040cff3
add esp, 8
test eax, eax
je 0x40260f
push 0x4479d0
push 0x451a64
call fcn.0040cff3
add esp, 8
test eax, eax
je 0x40260f
test byte [0x451a38], 0x10
je 0x40260f
push 0x451a64
call fcn.0040f27f
add esp, 4
mov dword [ebp - 0x2420], 0xffffffff
test eax, eax
jle 0x40260f
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40260f
lea eax, [ebp - 0x2420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x2420], 0x103
je 0x4027a5
push esi
call edi
push 0x451a38
push dword [0x451038]
call ebx
test eax, eax
jne 0x402570
push dword [0x451038]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x451a2c]
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 0x402640
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402660
lea eax, [ebp - 0x414]
mov ecx, 0x12
mov esi, str.dongledongleDriver.exe__uninstall
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040f7c9
add esp, 4
cmp dword [0x451034], 0
je 0x40273c
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 0x4026d6
lea eax, [ebp - 0x2418]
push eax
push 4
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000001
call esi
test eax, eax
jne 0x4026e3
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 0x402719
lea eax, [ebp - 0x2418]
push eax
push 4
push 0
push str.SoftwareMentorGraphics
push 0x80000001
call esi
test eax, eax
jne 0x402726
push str.MentorGraphicsJI
push dword [ebp - 0x2418]
call edi
call fcn.00401ac0
push 0x17
call fcn.00401cd0
push 0x17
call fcn.00401f20
add esp, 8
call fcn.00401570
push 0x447b54
lea eax, [ebp - 0x2428]
push 0x447b58
push eax
call fcn.004213c4
add esp, 0xc
test eax, eax
jne 0x402782
push dword [ebp - 0x2428]
call fcn.004017a0
push dword [ebp - 0x2428]
call fcn.0042148d
add esp, 8
push str...uninstallmanifest
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x242c]
call fcn.00401320
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402c13
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 0x4027ca
call edi
jmp 0x402624
call edi
push dword [0x451038]
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.00402c13
mov esp, ebp
pop ebp
ret 0x10