Function at 0x402d30
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42df74
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x43f50c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x208
push 0
mov dword [ebp - 0x458], esi
push eax
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x428], 0
call fcn.0041aab0
add esp, 0xc
mov dword [ebp - 0x44c], 0x104
mov dword [ebp - 0x438], 0
call fcn.00404b2d
mov ecx, eax
test ecx, ecx
je 0x40329b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
call fcn.00404b2d
mov ecx, eax
test ecx, ecx
je 0x4032a5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.004029e0
test al, al
jne 0x402e0c
push 0x33
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x42c]
call fcn.00402050
mov edi, dword [ebp - 0x42c]
xor ecx, ecx
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov dword [ebp - 0x448], ecx
test ecx, ecx
mov edx, 0x100
mov eax, 0x200
lea ecx, [ebp - 0x43c]
cmove eax, edx
push ecx
mov dword [ebp - 0x454], eax
or eax, 0x20019
push eax
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031bc
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x40314a
xor ecx, ecx
mov dword [ebp - 0x444], ecx
test eax, eax
je 0x40314a
nop dword [eax + eax]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x450], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x403131
mov ecx, dword [edi - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x402f1e
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x402f32
call fcn.00404b2d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x40329b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or dword [ebp - 0x428], 2
mov edx, dword [edi - 0xc]
mov dword [ebp - 0x440], edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
lea ebx, [edx + 1]
test ebx, ebx
js 0x4032b9
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x402f86
push ebx
lea ecx, [ebp - 0x430]
call fcn.00401d20
mov esi, dword [ebp - 0x430]
mov edx, dword [ebp - 0x440]
push edx
push edi
push edx
push esi
call fcn.00402bd0
mov eax, dword [ebp - 0x440]
add esp, 0x10
lea ecx, [esi + eax*2]
test ecx, ecx
jne 0x402fb1
call fcn.0041d889
mov dword [eax], 0x16
call fcn.0041d7cc
jmp 0x402fba
mov ax, word [0x42f870]
mov word [ecx], ax
cmp ebx, dword [esi - 8]
jg 0x4032b9
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.00402800
add esp, 0xc
and dword [ebp - 0x428], 0xfffffffd
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40300e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x454]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004032d0
add esp, 0xc
mov eax, dword [ebp - 0x41c]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4030f5
js 0x403079
push str.FSE_Client
push eax
call fcn.00419985
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x41c]
test ecx, ecx
je 0x403079
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x403079
push dword [eax - 0xc]
lea ecx, [ebp - 0x424]
push eax
call fcn.00402930
mov eax, dword [ebp - 0x41c]
cmp dword [eax - 0xc], 0
jl 0x4030f5
push str.FSW_Client
push eax
call fcn.00419985
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x41c]
test ecx, ecx
je 0x4030b7
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4030b7
push dword [eax - 0xc]
lea ecx, [ebp - 0x424]
push eax
call fcn.00402930
mov eax, dword [ebp - 0x41c]
cmp dword [eax - 0xc], 0
jl 0x4030f5
push str.Fasoo_DRM
push eax
call fcn.00419985
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x41c]
test ecx, ecx
je 0x4030f5
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4030f5
push dword [eax - 0xc]
lea ecx, [ebp - 0x424]
push eax
call fcn.00402930
mov eax, dword [ebp - 0x41c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 6
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403110
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403131
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x444]
inc ecx
mov dword [ebp - 0x444], ecx
cmp ecx, dword [ebp - 0x438]
jb 0x402ed0
mov ecx, dword [ebp - 0x448]
inc ecx
mov dword [ebp - 0x448], ecx
cmp ecx, 2
jl 0x402e21
mov esi, dword [ebp - 0x424]
add esi, 0xfffffff0
push esi
call fcn.00402b70
mov ecx, dword [ebp - 0x420]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov dword [ecx], eax
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x403198
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4031b1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x420]
jmp 0x40327f
call fcn.00404b2d
mov ecx, eax
test ecx, ecx
je 0x4032af
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x420]
add eax, 0x10
mov dword [ecx], eax
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
mov esi, dword [edx]
mov byte [ebp - 4], 3
je 0x40323a
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x403213
cmp dword [eax - 8], 0
jl 0x4032b9
mov esi, dword [ebp - 0x420]
xor ecx, ecx
mov dword [eax - 0xc], 0
mov eax, dword [esi]
mov word [eax], cx
jmp 0x403240
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x403226
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x420]
add eax, 0x10
mov dword [esi], eax
jmp 0x403240
mov esi, dword [ebp - 0x420]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40325b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40327d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418b5f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401310
push 0x80004005
call fcn.00401310
push 0x80004005
call fcn.00401310
push 0x80070057
call fcn.00401310
int3