Function at 0x402370
Capabilities:
Accept command line arguments
Create process on windows
Delete file
Extract resource via kernel32 functions
Get file version info
Query or enumerate registry value
Resolve function by parsing pe exports
Set environment variable

Disassembly:
mov eax, 0x3eb8
call fcn.00403870
mov eax, dword [0x4120c0]
xor eax, esp
mov dword [esp + 0x3eb4], eax
push ebx
mov ebx, dword [esp + 0x3ec0]
push ebp
push esi
mov esi, dword [esp + 0x3ed0]
push edi
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x10
push 1
xor ebp, ebp
push ebx
xor edi, edi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x402424
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
je 0x402424
add eax, 0x28
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x402420
mov ecx, eax
cmp dword [ecx + 0x10], 0x20008
jne 0x402420
mov edx, eax
cmp dword [edx + 0x14], edi
jne 0x402420
push edi
push 0x401040
push edi
push 0xa6
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x4025f2
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
jne 0x40243a
mov dword [esp + 0x20], edi
cmp dword [esp + 0x20], edi
mov byte [esp + 0x10], 0
jle 0x402517
lea esp, [esp]
mov ecx, dword [esi]
push str.help
push ecx
call fcn.004037d5
add esp, 8
test eax, eax
je 0x402591
mov edx, dword [esi]
push 0x40e500
push edx
call fcn.004037d5
add esp, 8
test eax, eax
je 0x402591
mov eax, dword [esi]
push str.extract32
push eax
call fcn.004037d5
add esp, 8
test eax, eax
jne 0x402497
lea edi, [eax + 0x20]
mov ecx, dword [esi]
push str.extract64
push ecx
call fcn.004037d5
add esp, 8
test eax, eax
jne 0x4024ae
lea edi, [eax + 0x40]
mov edx, dword [esi]
push 0x40e4d0
push edx
call fcn.004037d5
add esp, 8
test eax, eax
je 0x4024fe
mov eax, dword [esi]
push 0x40e4c8
push eax
call fcn.004037d5
add esp, 8
test eax, eax
je 0x4024fe
mov ecx, dword [esi]
push str._quiet
push ecx
call fcn.004037d5
add esp, 8
test eax, eax
je 0x4024fe
mov edx, dword [esi]
push str._passive
push edx
call fcn.004037d5
add esp, 8
test eax, eax
jne 0x402503
mov byte [esp + 0x10], 1
mov eax, dword [esp + 0x20]
dec eax
add esi, 4
mov dword [esp + 0x20], eax
test eax, eax
jg 0x402450
test ebp, ebp
jne 0x4025f9
cmp byte [esp + 0x10], 0
jne 0x402587
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea eax, [esp + 0x2c0]
push eax
push 0x64
push ebx
call esi
test eax, eax
jne 0x40254c
xor ecx, ecx
mov word [esp + 0x2bc], cx
push 0x100
lea edx, [esp + 0xb8]
push edx
push 0xa6
push ebx
call esi
test eax, eax
jne 0x40256d
mov word [esp + 0xb4], ax
push 0x10
lea ecx, [esp + 0x2c0]
push ecx
lea edx, [esp + 0xbc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x6a
jmp 0x402b84
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea eax, [esp + 0x2c0]
push eax
push 0x64
push ebx
call esi
test eax, eax
jne 0x4025b7
xor ecx, ecx
mov word [esp + 0x2bc], cx
push 0x1000
lea edx, [esp + 0x1ec8]
push edx
push 0xc8
push ebx
call esi
test eax, eax
jne 0x4025d8
mov word [esp + 0x1ec4], ax
push 0
lea ecx, [esp + 0x2c0]
push ecx
lea edx, [esp + 0x1ecc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x402b84
test edi, edi
je 0x40264a
movzx eax, word [ebp + 0x16]
movzx ecx, word [ebp + 0x10]
movzx edx, word [ebp + 0x12]
push eax
push ecx
push edx
push edi
push str.ClassicShellSetup_d__d__d__d.msi
lea eax, [esp + 0xc8]
push 0x104
push eax
call fcn.00402c40
mov ecx, dword [esp + 0x2c]
cmp edi, 0x40
sete dl
push ecx
movzx eax, dl
push eax
lea ecx, [esp + 0xd8]
push ecx
mov ecx, ebx
call fcn.00401e70
add esp, 0x28
jmp 0x402b84
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov edx, eax
shr edx, 8
movzx cx, dl
movzx dx, al
shl dx, 8
or cx, dx
mov eax, 0x601
cmp cx, ax
jae 0x4026e5
cmp byte [esp + 0x10], 0
jne 0x4026db
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea ecx, [esp + 0xb8]
push ecx
push 0x64
push ebx
call esi
test eax, eax
jne 0x40269e
xor edx, edx
mov word [esp + 0xb4], dx
push 0x100
lea eax, [esp + 0x2c0]
push eax
push 0xa9
push ebx
call esi
test eax, eax
jne 0x4026c1
xor ecx, ecx
mov word [esp + 0x2bc], cx
push 0x10
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x2c4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x65
jmp 0x402b84
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x40277a
cmp byte [esp + 0x10], al
jne 0x4026db
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x100
lea ecx, [esp + 0xb8]
push ecx
push 0x64
push ebx
call esi
test eax, eax
jne 0x402730
xor edx, edx
mov word [esp + 0xb4], dx
push 0x100
lea eax, [esp + 0x2c0]
push eax
push 0xa9
push ebx
call esi
test eax, eax
jne 0x4026c1
push 0x10
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x2c4]
xor ecx, ecx
push eax
push ecx
mov word [esp + 0x2cc], cx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x65
jmp 0x402b84
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push str.StartHookWindow
push str.ClassicStartMenu.CStartHookWindow
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x402905
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x3c]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x402901
push str.QueryFullProcessImageNameW
push edi
mov bl, 1
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402882
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0xb8]
push edx
push 0
push ebp
call eax
test eax, eax
je 0x402882
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xb8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x402882
push esi
lea ecx, [esp + 0x5c]
call fcn.00401cf0
push 0
lea ecx, [esp + 0x5c]
call fcn.004011e0
push eax
push esi
push 0
lea edx, [esp + 0xc0]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402879
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x40e3b0
push 0
lea ecx, [esp + 0x68]
call fcn.004011e0
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402879
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x10], 0x20000
jbe 0x402879
xor bl, bl
lea ecx, [esp + 0x58]
call fcn.004014d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
test bl, bl
je 0x4028f7
mov esi, dword [esp + 0x18]
push 0x100
lea eax, [esp + 0xb8]
push eax
push 0x64
push esi
call edi
test eax, eax
jne 0x4028b7
xor ecx, ecx
mov word [esp + 0xb4], cx
push 0x400
lea edx, [esp + 0x6c8]
push edx
push 0x65
push esi
call edi
test eax, eax
jne 0x4028d5
mov word [esp + 0x6c4], ax
push 0x30
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x6cc]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebp, dword [esp + 0x14]
mov ebx, esi
jmp 0x40290b
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
jmp 0x40290b
mov ebp, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x18]
push eax
and ecx, 0x100
or ecx, 0x20019
push ecx
push 0
push str.SOFTWAREIvoSoftClassicShell
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402978
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push 0
push 0
push str.Version
push ecx
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40296d
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, word [ebp + 0x16]
movzx ecx, word [ebp + 0x10]
movzx edx, word [ebp + 0x12]
push eax
mov eax, dword [esp + 0x20]
neg eax
push ecx
sbb eax, eax
push edx
and eax, 0x20
add eax, 0x20
push eax
push str.__ALLUSERSPROFILE__ClassicShellSetup_d__d__d__d.msi
lea ecx, [esp + 0x4d0]
push 0x104
push ecx
call fcn.00402c40
mov esi, dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
add esp, 0x1c
push 0x104
lea edx, [esp + 0x4c0]
push edx
call esi
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
setne cl
movzx edx, cl
push eax
push edx
lea eax, [esp + 0x4c4]
push eax
mov ecx, ebx
call fcn.00401e70
add esp, 0xc
test eax, eax
jne 0x402b84
mov ebp, dword [esp + 0x24]
push str._MSI_
push ebp
call fcn.00402d56
add esp, 8
test eax, eax
jne 0x402a3d
push str._msi_
push ebp
call fcn.00402d56
add esp, 8
test eax, eax
jne 0x402a3d
push ebp
lea ecx, [esp + 0x4c0]
push ecx
push str.msiexec.exe__i___s___s
lea edx, [esp + 0xed0]
push 0x800
push edx
call fcn.00402c40
add esp, 0x14
jmp 0x402a7a
lea eax, [esp + 0x4bc]
push eax
push 0x40e2a4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebp
push str.msiexec.exe__s
lea ecx, [esp + 0xecc]
push 0x800
push ecx
call fcn.00402c40
add esp, 0x10
push 0x800
lea edx, [esp + 0xec8]
push edx
call esi
push 0x40
lea eax, [esp + 0x78]
push 0
push eax
mov dword [esp + 0x7c], 0x44
call fcn.004038a0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x74]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0xee4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402b41
lea ecx, [esp + 0x4bc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esp + 0x10], 0
jne 0x402b3a
push 0x100
lea edx, [esp + 0xb8]
push edx
push 0x64
push ebx
call edi
test eax, eax
jne 0x402afd
mov word [esp + 0xb4], ax
push 0x100
lea ecx, [esp + 0x2c0]
push ecx
push 0xaa
push ebx
call edi
test eax, eax
jne 0x402b20
xor edx, edx
mov word [esp + 0x2bc], dx
push 0x10
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x2c4]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x6c
jmp 0x402b84
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x2c]
push eax
call esi
lea ecx, [esp + 0x4bc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3ec4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040300f
add esp, 0x3eb8
ret 0x10