Function at 0x4612d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5635de
call fcn.0053c1d0
sub esp, 0x430
mov eax, dword [0x5af710]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
xor edi, edi
push str.SOFTWAREMicrosoftDirectX
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x424], edi
call fcn.004071e0
lea eax, [ebp - 0x428]
push eax
push 0xf003f
push edi
push dword [ebp - 0x430]
mov dword [ebp - 4], edi
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x461353
push 0x572aed
mov ecx, esi
call fcn.00405500
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.00401250
mov eax, esi
jmp 0x461622
push ebx
push str.InstalledVersion
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x434], 0x400
call fcn.004071e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
push edi
push dword [ebp - 0x41c]
mov byte [ebp - 4], 1
push dword [ebp - 0x428]
call esi
mov ebx, eax
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x420], eax
cmp ebx, edi
mov byte [ebp - 4], 2
jne 0x461408
cmp byte [ebp - 0x409], 0
jne 0x4613df
movsx eax, byte [ebp - 0x40d]
push eax
lea eax, [ebp - 0x420]
push 0x572be0
push eax
call fcn.0040b350
add esp, 0xc
jmp 0x4615d9
movsx eax, byte [ebp - 0x409]
push eax
movsx eax, byte [ebp - 0x40d]
push eax
lea eax, [ebp - 0x420]
push str._d_d
push eax
call fcn.0040b350
add esp, 0x10
jmp 0x4615d9
push str.Version
lea ecx, [ebp - 0x41c]
call fcn.00404600
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
push edi
push dword [ebp - 0x41c]
push dword [ebp - 0x428]
call esi
cmp eax, edi
jne 0x4615d9
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.004071e0
push edi
push 0x2e
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 3
call fcn.00418bc0
mov esi, eax
cmp esi, edi
jle 0x4615c7
lea edi, [esi + 1]
push edi
push 0x2e
lea ecx, [ebp - 0x414]
call fcn.00418bc0
mov ebx, eax
test ebx, ebx
jle 0x4615c7
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov eax, ebx
sub eax, esi
dec eax
push eax
push edi
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 4
call fcn.00418cc9
push dword [eax]
mov byte [ebp - 4], 5
call fcn.0053c6a5
push eax
mov edi, 0x572be0
lea eax, [ebp - 0x42c]
push edi
push eax
call fcn.0040b350
mov ecx, dword [ebp - 0x418]
add esp, 0x10
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00401250
lea eax, [ebx + 1]
push eax
push 0x2e
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x424], eax
call fcn.00418bc0
mov esi, eax
test esi, esi
jle 0x4615b9
call fcn.005504da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
sub esi, ebx
dec esi
push esi
push dword [ebp - 0x424]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 6
call fcn.00418cc9
push dword [eax]
mov byte [ebp - 4], 7
call fcn.0053c6a5
push eax
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.0040b350
mov ecx, dword [ebp - 0x424]
add esp, 0x10
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401250
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.0040b370
add esp, 0xc
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 8
call fcn.0040b4e0
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff0
call fcn.00401250
mov ecx, dword [ebp - 0x418]
add ecx, 0xfffffff0
call fcn.00401250
mov ecx, dword [ebp - 0x42c]
add ecx, 0xfffffff0
call fcn.00401250
mov ecx, dword [ebp - 0x414]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401250
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x438]
push esi
call fcn.00405500
lea ecx, [esi - 0x10]
call fcn.00401250
mov ecx, dword [ebp - 0x41c]
add ecx, 0xfffffff0
call fcn.00401250
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
call fcn.00401250
mov eax, dword [ebp - 0x438]
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.0053aaae
leave
ret