Function at 0x401d00
Capabilities:
Create process on windows
Create process suspended
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc8
mov eax, dword [0x48e780]
xor eax, esp
mov dword [esp + 0xcc4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str.uninstallsRegPath:__s_n
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
call fcn.004015d0
push eax
push str.msi_name:__s_n
call fcn.004015d0
mov ecx, dword [ebp + 0x10]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
or ecx, 0x20019
push ecx
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402057
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2b2]
push eax
mov word [esp + 0x2b4], dx
call fcn.004595b0
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2d0]
push ecx
push edx
mov dword [esp + 0x54], 0x104
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402057
push eax
push str.Number_of_subkeys:__d_n
call fcn.004015d0
xor eax, eax
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc], eax
jbe 0x402057
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x8d4]
push ecx
push eax
push edx
mov dword [esp + 0x3c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402044
lea edx, [esp + 0xa0]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e43
lea edi, [esp + 0xa0]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401e60
mov eax, dword [0x482748]
mov dword [edi], eax
lea eax, [esp + 0x8c0]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e80
lea edi, [esp + 0xa0]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401ea0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401ea0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6bc]
push ecx
push str.DisplayName
lea edx, [esp + 0xac]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004013e0
add esp, 0x14
cmp al, 1
jne 0x402040
mov esi, dword [esp + 0x20]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ef4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6bc]
push esi
push eax
call fcn.00459166
add esp, 0xc
test eax, eax
jne 0x402040
push 0x104
lea ecx, [esp + 0xac4]
push ecx
push str.UninstallString
lea edx, [esp + 0xac]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004013e0
add esp, 0x14
cmp al, 1
jne 0x402040
lea eax, [esp + 0xac0]
push 0x7b
push eax
call fcn.0045a02b
mov esi, eax
add esp, 8
test esi, esi
je 0x402040
push 0x7d
push esi
call fcn.0045a02b
add esp, 8
xor eax, eax
jmp 0x401f80
movzx ecx, word [eax + 0x48274c]
mov word [esp + eax + 0x4b0], cx
add eax, 2
test cx, cx
jne 0x401f80
mov eax, esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401fa0
lea edi, [esp + 0x4b0]
sub eax, esi
add edi, 0xfffffffe
jmp 0x401fc0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401fc0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x40
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
push 0
push ecx
mov dword [esp + 0x64], 0x44
call fcn.004595b0
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x4d0]
push ecx
push 0
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402076
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0xc]
jb 0x401e04
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0xcc4]
xor ecx, esp
call fcn.00459157
mov esp, ebp
pop ebp
ret
push 0x48277c
call fcn.004015d0
add esp, 4
call fcn.00401590
mov ecx, dword [esp + 0xccc]
pop edi
pop esi
xor ecx, esp
call fcn.00459157
mov esp, ebp
pop ebp
ret