Function at 0x401450
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x126c
call fcn.004023e0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push 0x400
push 0x40cce8
xor eax, eax
mov dword [ebp - 0x178], 0x44
mov ecx, 0x10
lea edi, [ebp - 0x174]
push 0x65
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_LoadStringA]
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call edi
push 0x400
push 0x40d0e8
push 0x66
push esi
call edi
push 0x40cb48
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, 0x40cb48
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x4014de
mov byte [eax], bl
mov ecx, 0x40cb48
mov edx, 0x40ca40
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x4014e8
push 0x40ca40
mov ecx, 0x40d4e8
call fcn.00401060
push 0x104
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401520
sub eax, edx
cmp byte [ebp + eax - 0x135], 0x5c
jne 0x401550
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401540
sub eax, edx
mov byte [ebp + eax - 0x135], bl
lea edi, [ebp - 0x134]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401557
mov ecx, dword [0x40a32c]
mov edx, dword [0x40a330]
mov al, byte [0x40a334]
push ebx
mov dword [edi], ecx
push ebx
push ebx
lea ecx, [ebp - 0x134]
mov dword [edi + 4], edx
push ecx
mov ecx, 0x40d4e8
mov byte [edi + 8], al
call fcn.00401130
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x4018ce
cmp eax, 0xffffffff
je 0x4018ce
mov esi, dword [sym.imp.shell32.dll_ShellExecuteA]
mov edi, dword [sym.imp.kernel32.dll_CreateProcessA]
mov dword [ebp - 0x1c], ebx
nop
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0xe7c]
push edx
push eax
mov byte [ebp - 0xe7c], bl
call sub.msi.dll_MsiEnumComponentsA
test eax, eax
jne 0x4018cb
lea ecx, [ebp - 0xa7c]
push ecx
lea edx, [ebp - 0xe7c]
push edx
mov byte [ebp - 0xa7c], bl
call sub.msi.dll_MsiGetProductCodeA
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x134]
push ecx
push 0x40a314
lea edx, [ebp - 0xa7c]
push edx
mov byte [ebp - 0x134], bl
mov dword [ebp - 0x14], 0x104
call sub.msi.dll_MsiGetProductInfoA
lea eax, [ebp - 0x134]
push eax
call fcn.00402566
lea ecx, [ebp - 0x134]
push 0x40a30c
push ecx
call fcn.004024e0
add esp, 0xc
test eax, eax
je 0x401784
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0xe7c]
push ecx
mov byte [ebp - 0x134], bl
mov dword [ebp - 0x14], 0x104
call sub.msi.dll_MsiLocateComponentA
cmp eax, 3
jne 0x40177c
lea edx, [ebp - 0x134]
push 0x5c
push edx
call fcn.00402070
add esp, 8
cmp eax, ebx
je 0x40177c
push 0x40a300
push eax
call fcn.004097c0
add esp, 8
test eax, eax
jne 0x40177c
push ebx
push ebx
push 0x40a2f4
lea eax, [ebp - 0x134]
push eax
push 0x40a2ec
push ebx
call esi
push ebx
push ebx
push 0x40a2e0
lea ecx, [ebp - 0x134]
push ecx
push 0x40a2ec
push ebx
call esi
push ebx
push ebx
push 0x40a2d4
lea edx, [ebp - 0x134]
push edx
push 0x40a2ec
push ebx
call esi
push ebx
push ebx
push 0x40a2c8
lea eax, [ebp - 0x134]
push eax
push 0x40a2ec
push ebx
call esi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x178]
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
push 0x40a2f4
lea eax, [ebp - 0x134]
push eax
call edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x178]
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
push 0x40a2e0
lea eax, [ebp - 0x134]
push eax
call edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x178]
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
push 0x40a2d4
lea eax, [ebp - 0x134]
push eax
call edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x178]
push edx
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
push 0x40a2c8
lea eax, [ebp - 0x134]
push eax
call edi
inc dword [ebp - 0x1c]
jmp 0x4015b0
lea ecx, [ebp - 0x134]
push 0x40a2c0
push ecx
call fcn.004024e0
add esp, 8
test eax, eax
je 0x40177c
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0xe7c]
push ecx
mov byte [ebp - 0x134], bl
mov dword [ebp - 0x14], 0x104
call sub.msi.dll_MsiLocateComponentA
cmp eax, 3
jne 0x40177c
lea edx, [ebp - 0x134]
push 0x5c
push edx
call fcn.00402070
add esp, 8
cmp eax, ebx
je 0x40177c
push 0x40a2b4
push eax
call fcn.004097c0
add esp, 8
test eax, eax
jne 0x40177c
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x40a288
push 0x80000001
mov dword [ebp - 0x18], ebx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40182d
mov eax, dword [0x40d718]
cmp eax, ebx
je 0x401824
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov dword [0x40d718], edx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x40d718]
lea ecx, [ebp - 0xa7c]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push 0x40a270
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x18], ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [ebp - 0xa7c]
push ecx
call fcn.0040247a
mov ecx, dword [0x40d718]
add esp, 4
cmp ecx, ebx
mov dword [ebp - 0x14], eax
je 0x401884
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov dword [0x40d718], ebx
cmp eax, ebx
jne 0x401892
mov eax, 1
mov dword [ebp - 0x14], eax
cmp eax, ebx
jbe 0x40177c
push eax
lea edx, [ebp - 0xa7c]
push 0x40a268
push edx
call fcn.0040241d
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0xa7c]
push eax
lea ecx, [ebp - 0x134]
push ecx
push 0x40a2ec
push ebx
call esi
mov eax, dword [ebp - 0x14]
dec eax
jmp 0x40188d
mov esi, dword [ebp + 8]
push 0x104
lea edx, [ebp - 0x134]
push edx
push 0x67
push esi
call dword [sym.imp.user32.dll_LoadStringA]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
lea ecx, [ebp - 0x134]
push ecx
push 0x80000001
mov dword [ebp - 0x18], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40191f
mov eax, dword [0x40d718]
cmp eax, ebx
je 0x401916
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov dword [0x40d718], edx
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x40d718]
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push 0x40a260
push eax
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x18], ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x134]
push ecx
call fcn.0040247a
mov ecx, eax
mov eax, 0x74ec96b9
mul ecx
shr edx, 9
mov eax, edx
imul eax, eax, 0x461
add esp, 4
cmp eax, ecx
mov dword [ebp - 0x14], ecx
je 0x4019aa
push ebx
push 0x40a250
push 0x40d0e8
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x40d718]
cmp eax, ebx
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x134], dl
mov byte [ebp - 0x133], bl
je 0x4019cf
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [0x40d718], ebx
lea edi, [ebp - 0x134]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4019d6
mov ecx, dword [0x40a23c]
mov edx, dword [0x40a240]
mov eax, dword [0x40a244]
mov dword [edi], ecx
mov ecx, dword [0x40a248]
mov dword [edi + 4], edx
mov dl, byte [0x40a24c]
mov dword [edi + 8], eax
push 0x400
lea eax, [ebp - 0x578]
push eax
push 0x68
mov dword [edi + 0xc], ecx
push esi
mov byte [edi + 0x10], dl
call dword [sym.imp.user32.dll_LoadStringA]
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
xor eax, eax
mov ecx, 0x100
lea edi, [ebp - 0x127c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x578]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a41
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x578]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a55
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x127c]
push ecx
lea edx, [ebp - 0x134]
push edx
mov ecx, 0x40d4e8
call fcn.00401130
cmp esi, eax
jmp 0x401aa6
lea esi, [ebp - 0x127c]
lea eax, [ebp - 0x578]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401ad6
cmp cl, bl
je 0x401ad2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401ad6
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401ab2
xor eax, eax
jmp 0x401adb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
nop
nop
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.user32.dll_LoadStringA]
push 0x400
lea eax, [ebp - 0x578]
push eax
push 0x69
push esi
call edi
lea ecx, [ebp - 0x578]
push ecx
push 0x40cb48
lea edx, [ebp - 0x134]
push 0x40a178
push edx
call fcn.0040241d
add esp, 0x10
push 0x400
lea eax, [ebp - 0x578]
push eax
push 0x6a
push esi
call edi
lea ecx, [ebp - 0x578]
push ecx
push 0x40cb48
lea edx, [ebp - 0x67c]
push 0x40a178
push edx
call fcn.0040241d
add esp, 0x10
push 0x400
lea eax, [ebp - 0x578]
push eax
push 0x6b
push esi
mov byte [ebp - 0x578], bl
call edi
push 0x40cb48
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
push ebx
lea ecx, [ebp - 0x67c]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x178]
push eax
push ebx
push ebx
push 0x4000000
push 1
push ebx
push ebx
lea ecx, [ebp - 0x578]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.004091e0
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x28]
push ecx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10