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

Disassembly:
push 0xffffffffffffffff
push 0x4501ba
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x46c8b0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c8b0]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14c], 0
or edi, 0xffffffff
mov dword [esp + 0x28], 0x104
call fcn.00417b8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404f8f
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push str.SoftWareTopThemesXPThemeXPSettings
push SysReAllocStringLen
mov byte [esp + 0x160], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4051e7
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push str.AppPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4051a8
call fcn.00417b8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405008
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14c], 2
call fcn.00417b8f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40503a
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x38], ebp
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
mov bl, 3
push 0x455b91
mov byte [esp + 0x158], bl
call fcn.004044a0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.LicenseName
mov byte [esp + 0x15c], 4
call fcn.004044a0
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push str.SoftWareTopThinksTXP
mov byte [esp + 0x160], 5
call fcn.004044a0
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x160], bl
call fcn.00404560
add esp, 0x14
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 6
call fcn.00402160
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x14c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x1c]
push str.088089074091090088
push ebx
call fcn.00434540
add esp, 8
test eax, eax
sete al
test al, al
je 0x40511b
mov ecx, dword [esp + 0x20]
call fcn.00404860
test eax, eax
je 0x405114
xor edi, edi
jmp 0x405155
mov edi, 1
jmp 0x405120
mov edi, 2
mov ecx, dword [esp + 0x154]
push ecx
lea edx, [esp + 0x18]
push str.__s_
push edx
call fcn.004013d0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 1
push 0
push esi
lea eax, [esp + 0x48]
push eax
push 0x455c38
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x14c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405184
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x14c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x14c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4051d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14c], 0xffffffff
or edx, 0xffffffff
jmp 0x405213
lea eax, [esi - 0x10]
mov byte [esp + 0x14c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40520a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14c], edi
mov edx, edi
mov eax, dword [esp + 0x154]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00433eb7
add esp, 0x13c
ret 4