Function at 0x401200
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x448
mov ecx, dword [0x40e1c4]
push esi
push edi
mov dword [esp + 0x18], ecx
mov ecx, 6
mov esi, str.SoftwareMicrosoftDirectX
lea edi, [esp + 0x24]
mov edx, dword [0x40e1c8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [str.DirectX_Version]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], edx
push ecx
movsw word es:[edi], word [esi]
push 0xf003f
lea edx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [0x40e1cc]
push 0
push edx
push closesocket
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x20], 1
mov dword [esp + 0x34], eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4014f9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.Version
push eax
call esi
test eax, eax
jne 0x40147b
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24c]
push 0x40e198
push edx
call esi
lea eax, [esp + 0x4c]
push str.4.07
push eax
call fcn.00405930
add esp, 0x14
test eax, eax
jne 0x401464
lea ecx, [esp + 0x40]
push 0x40e18c
push ecx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x401464
lea edx, [esp + 0x40]
push str.4.06
push edx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x40140a
lea eax, [esp + 0x40]
push 0x40e180
push eax
call fcn.00405930
add esp, 8
test eax, eax
jne 0x40140a
lea ecx, [esp + 0x40]
push str.4.05
push ecx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4013f3
lea edx, [esp + 0x40]
push 0x40e174
push edx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4013f3
lea eax, [esp + 0x40]
push str.4.04
push eax
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4013dc
lea ecx, [esp + 0x40]
push 0x40e168
push ecx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4013dc
lea edx, [esp + 0x40]
push str.4.03
push edx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4013c5
lea eax, [esp + 0x40]
push 0x40e15c
push eax
call fcn.00405930
add esp, 8
test eax, eax
jne 0x4013c5
lea ecx, [esp + 0x144]
push str.DirectX
push ecx
call esi
add esp, 8
jmp 0x401520
lea edx, [esp + 0x144]
push str.DirectX_3
push edx
call esi
add esp, 8
jmp 0x401520
lea eax, [esp + 0x144]
push str.DirectX_4
push eax
call esi
add esp, 8
jmp 0x401520
lea ecx, [esp + 0x144]
push str.DirectX_5
push ecx
call esi
add esp, 8
jmp 0x401520
lea edx, [esp + 0x40]
push str.4.06.02
push edx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x40144d
lea eax, [esp + 0x40]
push str.4.6.2
push eax
call fcn.00405930
add esp, 8
test eax, eax
jne 0x40144d
lea ecx, [esp + 0x144]
push str.DirectX_6
push ecx
call esi
add esp, 8
jmp 0x401520
lea edx, [esp + 0x144]
push str.DirectX_6.1
push edx
call esi
add esp, 8
jmp 0x401520
lea eax, [esp + 0x144]
push str.DirectX_7
push eax
call esi
add esp, 8
jmp 0x401520
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.InstalledVersion
push ecx
mov dword [esp + 0x24], 3
call esi
test eax, eax
jne 0x4014d5
lea edx, [esp + 0x34c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [esp + 0x40]
push eax
lea ecx, [esp + 0x148]
push str.DirectX__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401520
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x144]
push str.DirectX
push edx
call esi
lea eax, [esp + 0x250]
push str.Not_Installed
push eax
jmp 0x40151b
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x144]
push str.DirectX
push ecx
call esi
lea edx, [esp + 0x250]
push str.Not_Installed
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x144]
push 4
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00402af0
mov edx, dword [esp + 0x14]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x448
ret