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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x34], reloc.WS2_32.dll_accept
mov dword [ebp - 0x30], reloc.WS2_32.dll_bind
mov dword [ebp - 0x14], edi
mov esi, 0x408008
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push 0x408088
push dword [ebp + eax*4 - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d8e0
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x1c], edi
jbe 0x40d8d7
push 0x104
lea eax, [ebp - 0x83c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x83c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d8c8
push 0x200
push edi
lea eax, [ebp - 0x634]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x1fe
call fcn.0042c138
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x4080f0
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x40d761
cmp dword [ebp - 4], 1
je 0x40d76a
xor eax, eax
mov word [ebp - 0x634], ax
push 0x200
push edi
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x2c], 0x1fe
call fcn.0042c138
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x408104
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x40d7a7
cmp dword [ebp - 4], 1
je 0x40d7b0
xor eax, eax
mov word [ebp - 0x434], ax
push 0x200
push edi
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x24], 0x1fe
call fcn.0042c138
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0x40811c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x40d7ed
cmp dword [ebp - 4], 1
je 0x40d7f6
xor eax, eax
mov word [ebp - 0x234], ax
cmp word [ebp - 0x634], di
jne 0x40d836
cmp word [ebp - 0x434], di
jne 0x40d815
cmp word [ebp - 0x234], di
je 0x40d8bf
mov ecx, esi
call fcn.0042cc28
add eax, eax
push eax
push esi
lea ecx, [ebp - 0x634]
push ecx
call fcn.0042c0c1
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
cmp word [ebp - 0x434], di
jne 0x40d860
mov ecx, esi
call fcn.0042cc28
add eax, eax
push eax
push esi
lea ecx, [ebp - 0x434]
push ecx
call fcn.0042c0c1
xor ecx, ecx
mov word [ebp + eax - 0x434], cx
cmp word [ebp - 0x234], di
jne 0x40d88a
mov ecx, esi
call fcn.0042cc28
add eax, eax
push eax
push esi
lea ecx, [ebp - 0x234]
push ecx
call fcn.0042c0c1
xor ecx, ecx
mov word [ebp + eax - 0x234], cx
inc dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x634]
push eax
push dword [ebp - 0x20]
push 0x40813c
call fcn.0042cc28
mov ebx, eax
lea eax, [ebp - 0x18]
call fcn.0042cf4c
add esp, 0x14
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x40d6e4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jb 0x40d6a0
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret