Function at 0x409470
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x456d67
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x690]
mov dword fs:[0], eax
call fcn.004048c0
call fcn.00404b80
lea eax, [esp + 0x1c]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallVDC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4097a4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18c]
push edx
lea eax, [esp + 0x30]
push eax
push edi
push str.UninstallString
push ecx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x409521
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4097a4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004317f7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x409546
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x698], edi
call fcn.004317f7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x409577
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x188]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x69c], 1
call fcn.004027b0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, edi
mov bl, 2
mov byte [esp + 0x698], bl
jge 0x4095b9
or esi, 0xffffffff
jmp 0x4095d6
push 0x45d204
push ecx
call fcn.00442d29
add esp, 8
cmp eax, edi
jne 0x4095d0
or esi, 0xffffffff
jmp 0x4095d6
sub eax, dword [esp + 0x14]
mov esi, eax
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00407350
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x69c], 3
call fcn.00402020
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x698], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40961e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0x88]
push 0x104
push ecx
call fcn.004423ff
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add esp, 0xc
sub eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004072d0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x69c], 4
call fcn.00402020
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x698], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x290]
push 0x400
push ecx
call fcn.004423ff
push 0x44
lea edx, [esp + 0x50]
push edi
push edx
call fcn.004413c0
add esp, 0x18
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [esp + 0x2ac]
push edx
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x94], 1
mov word [esp + 0x98], di
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409735
mov ecx, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x30]
push ecx
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x409732
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x698], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40975d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x698], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409781
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x698], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0044027a
add esp, 0x688
ret