Function at 0x4c5ac9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4fd176
call fcn.004f5e8c
sub esp, 0x24
mov eax, dword [ebp + 0x37]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov ebx, ecx
je 0x4c5ae6
mov dword [eax], esi
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x4c5aef
mov dword [eax], esi
mov eax, dword [ebp + 0x24]
cmp eax, esi
je 0x4c5af8
mov dword [eax], esi
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4c5f76
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x4c5f76
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0xc0], eax
add eax, ecx
mov dword [ebx + 0x8000c4], eax
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x4c5b32
xor eax, eax
inc eax
mov dword [ebx + 0x1d0], eax
mov eax, dword [ebp + 0x18]
and eax, 1
mov dword [ebx + 0xb0], eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebx + 0x3d8], esi
mov dword [ebx + 0x3dc], esi
mov dword [ebx + 0x3e0], esi
mov dword [ebx + 0x3e4], esi
mov dword [ebx + 0xac], esi
mov dword [ebx + 0xb4], esi
je 0x4c5b83
lea edx, [ebx + 0x1d4]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4c5b77
jmp 0x4c5b91
and byte [ebx + 0x1d4], 0
mov ecx, ebx
call fcn.004c4574
and byte [ebx + 0x2d8], 0
push esi
push 4
mov dword [ebx + 0x2d4], esi
call sub.MSVCRT.dll_setlocale
push eax
call sub.MSVCRT.dll__strdup
add esp, 0xc
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4c5bc8
mov esi, eax
push 2
mov edi, 0x506eb4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4c5bd8
xor esi, esi
push 0x506eb4
push 4
call sub.MSVCRT.dll_setlocale
pop ecx
pop ecx
jmp 0x4c5bda
xor esi, esi
call fcn.004c5610
test eax, eax
je 0x4c5bed
mov dword [ebx + 0x98], 1
cmp dword [ebp + 8], esi
je 0x4c5c1a
mov esi, dword [ebp + 8]
push 2
mov edi, 0x506eb4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4c5c0f
push dword [ebp + 8]
push 4
call sub.MSVCRT.dll_setlocale
pop ecx
pop ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_free
pop ecx
xor esi, esi
cmp dword [ebx + 0x98], esi
jne 0x4c5f46
cmp dword [ebp + 0x1c], esi
je 0x4c5cb2
cmp dword [ebx + 0xac], esi
jne 0x4c5cb2
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x4c5c54
add al, 0xc8
call fcn.004d1e69
mov edi, eax
jmp 0x4c5c56
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x4c5d3e
push dword [ebx + 0x9c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov dword [ebp + 8], eax
cmp eax, esi
mov eax, dword [edi]
jge 0x4c5c81
push 1
mov ecx, edi
jmp 0x4c5d3b
push edi
call dword [eax + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x4c5ca5
add dword [ebx + 0x9c], 0xfffffffc
mov eax, dword [ebx + 0x9c]
mov ecx, dword [ebp + 0xc]
add eax, ecx
push eax
lea ecx, [ebx + 0x64]
call fcn.004d1c66
cmp dword [ebx + 0x9c], esi
jne 0x4c5c8a
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
cmp dword [ebx + 0x98], esi
jne 0x4c5f46
cmp dword [ebp + 0x20], esi
je 0x4c5dcf
mov eax, dword [ebx + 0xa0]
push 9
mov dword [ebp + 0xc], eax
add eax, 0x30
cmp dword [ebx + 0xac], 0
pop ecx
mov esi, str.D3DX8_Shader_Assembler_Version_0.91
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x1c], eax
je 0x4c5cf5
add eax, dword [ebx + 0x9c]
mov dword [ebp + 0x1c], eax
push 0x10
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 8], eax
xor edi, edi
inc edi
test eax, eax
mov dword [ebp - 4], edi
je 0x4c5d15
mov ecx, eax
call fcn.004d1e69
mov esi, eax
jmp 0x4c5d17
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], esi
je 0x4c5d3e
push dword [ebp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
mov dword [ebp + 8], eax
jge 0x4c5d48
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x14]
mov eax, 0x8007000e
jmp 0x4c5f7b
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edx, eax
mov eax, dword [ebx + 0xb4]
mov dword [edx], eax
push 9
pop ecx
xor eax, eax
mov dword [edx + 4], 0x9fffe
lea esp, [ebp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
push 9
lea edi, [edx + 8]
add edx, eax
cmp dword [ebp + 0xc], 0
pop ecx
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov dword [edx - 4], 0xffff
lea edi, [edx - 8]
je 0x4c5da0
lea esi, [ebx + 0x74]
push edi
mov ecx, esi
call fcn.004d1c66
sub edi, 4
sub dword [ebp + 0xc], 4
jne 0x4c5d8f
cmp dword [ebx + 0xac], 0
je 0x4c5dc5
lea esi, [ebx + 0x9c]
jmp 0x4c5dc0
loope 0x4c5e1b
add byte [ebp + 0x54], dh
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
xor esi, esi
cmp dword [ebx + 0x98], esi
jne 0x4c5f46
test byte [ebp + 0x18], 2
jne 0xc05f46
cmp dword [ebx + 0xa0], esi
je 0x4c5f39
lea eax, [ebp + 0x20]
push eax
push str.SOFTWAREMicrosoftDirect3D
push 0x80000002
or bh, bh
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4c5e6d
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push esi
push str.LoadDebugRuntime
push dword [ebp + 0x20]
push eax
add bh, bh
jne 0x4c5e40
mov dword [ebp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c5e45
cmp dword [ebp + 0x18], 4
jne 0x4c5e45
cmp dword [ebp + 0x1c], 4
jne 0x4c5e45
cmp dword [ebp + 0xc], esi
setne al
mov edi, eax
push dword [ebp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x4c5e6d
mov edi, str.d3d8d.dll
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
jne 0x4c5e8c
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
jne 0x4c5e8c
mov edi, 0x506e48
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
jne 0x4c5e8c
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
je 0x4c5f46
mov edi, dword [ebp + 0x24]
neg edi
sbb edi, edi
lea ecx, [ebp + 0x1c]
and edi, ecx
xor ecx, ecx
cmp dword [ebp + 0x24], esi
mov dword [ebp + 0x1c], esi
setne cl
cmp dword [ebx + 0xac], esi
mov dword [ebp + 0x18], ecx
je 0x4c5ed5
push str.ValidatePixelShader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x4c5efe
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push edi
push dword [ebp + 0x18]
push esi
push eax
call dword [ecx + 0xc]
cwde
call dword [ebp + 0xc]
jmp 0x4c5efb
push str.ValidateVertexShader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x4c5efe
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push edi
push ebp
sbb byte [esi + 0x56], dl
push eax
call dword [ecx + 0xc]
push eax
call dword [ebp + 0xc]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], esi
jge 0x4c5f0d
mov dword [ebx + 0x98], 1
cmp dword [ebp + 0x1c], esi
je 0x4c5f46
push dword [ebp + 0x1c]
lea ecx, [ebx + 0x84]
call fcn.004d1bb3
push dword [ebp + 0x1c]
inc dword [ebx + 0xa4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4c5f46
push str.statement_expected
push ebx
call fcn.004c3793
pop ecx
pop ecx
cmp dword [ebx + 0xa4], esi
je 0x4c5f65
cmp dword [ebp + 0x24], esi
je 0x4c5f65
push dword [ebp + 0x24]
lea ecx, [ebx + 0x84]
call fcn.004d1ca2
cmp eax, esi
jl 0x4c5f7b
mov eax, dword [ebx + 0x98]
neg eax
sbb eax, eax
and eax, 0x88760b59
jmp 0x4c5f7b
mov eax, 0x8876086c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0xc800], ecx
leave
ret 0x20