Function at 0x401ec0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x340
lea eax, [esp + 0xc]
push ebx
push esi
push edi
mov esi, dword [esp + 0x350]
push ebp
push eax
push 0xe
push esi
call fcn.00402de0
lea edi, [esp + 0x2c]
add esp, 0xc
xor eax, eax
mov ecx, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x150]
push str.SOFTWAREMicrosoftDirectPlay
mov dword [esp + 0x2c], 1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x150]
push 0x407288
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x150]
push str.Applications
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x150]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x4020b3
xor ebx, ebx
push 0xff
lea eax, [esp + 0x254]
mov ecx, dword [0x407370]
push eax
push 0x18
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x250]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x1100
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebp, eax
push 0xff
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0x18]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4020a8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call edi
test eax, eax
jne 0x402089
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push ecx
mov dword [esp + 0x28], ebp
push 0
mov dword [esp + 0x40], eax
push 0x1100
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea ecx, [esp + 0x18]
push 2
mov edx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x28], eax
push 0
lea eax, [esp + 0x2c]
push 0
mov dword [esp + 0x28], 0
push str.File
push edx
push 0x3e8
push esi
push eax
call fcn.004014b0
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
add esp, 0x24
push 2
push ecx
push 0
push 0
push str.CommandLine
push edx
push 0x3e8
push esi
push eax
call fcn.004014b0
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
add esp, 0x24
push 2
push ecx
push 0
push 0
push str.Path
push edx
push 0x3e8
push esi
push eax
call fcn.004014b0
mov ecx, dword [esp + 0x34]
add esp, 0x24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
push 0xff
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401fb9
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x150]
push str.SOFTWAREMicrosoftDirectPlay
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x150]
push 0x407288
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x150]
push str.Service_Providers
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x150]
push eax
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x40226a
xor ebx, ebx
push 0xff
lea eax, [esp + 0x254]
mov ecx, dword [0x407370]
push eax
push 0x19
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x250]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x20]
push ecx
push ebx
push 0x1100
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebp, eax
push 0xff
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0x18]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40225f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call edi
test eax, eax
jne 0x402240
lea eax, [esp + 0x50]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push ecx
mov dword [esp + 0x28], ebp
push 0
mov dword [esp + 0x40], eax
push 0x1100
push 0x3e8
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea ecx, [esp + 0x18]
push 3
mov edx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x28], eax
push 0
lea eax, [esp + 0x2c]
push 0
mov dword [esp + 0x28], 0
push str.Path
push edx
push 0x3e8
push esi
push eax
call fcn.004014b0
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
add esp, 0x24
push 1
push ecx
push 0
push 0
push str.dwReserved1
push edx
push 0x3e8
push esi
push eax
call fcn.004014b0
lea ecx, [esp + 0x3c]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x44]
add esp, 0x24
push 1
push ecx
push 0
push 0
push str.dwReserved2
push edx
push 0x3e8
push esi
push eax
call fcn.004014b0
mov ecx, dword [esp + 0x34]
add esp, 0x24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
push 0xff
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x402170
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x340
ret