Function at 0x74004f10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x20
push 0x740471f0
call fcn.74040db8
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1b], bl
call dword [sym.imp.DDRAW.dll_AcquireDDThreadLock]
wait
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.7400857e
test eax, eax
je 0x74005124
wait
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
push 4
pop esi
cmp dword [ebp + 0x1c], 3
jb 0x74004f75
mov edx, 0x74002638
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x74004f75
inc ecx
cmp ecx, esi
jne 0x74004f66
jmp 0x74004f92
mov edx, 0x74002628
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x74004f9c
inc ecx
cmp ecx, esi
jne 0x74004f7c
call fcn.7405bd55
test eax, eax
jne 0x74004f9c
mov edi, 0x80070057
jmp 0x740050c6
lea eax, [ebp - 0x24]
push eax
push 0x7400249c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x74004fed
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x740024b8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x74004fe4
cmp dword [ebp - 0x2c], esi
jne 0x74004fe4
cmp dword [ebp - 0x30], eax
je 0x74004fe4
mov byte [ebp - 0x1b], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x478]
test edx, edx
je 0x7400504e
mov ecx, ebx
mov eax, dword [edi + ecx*4]
mov edi, 0x74002618
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp + 8]
jne 0x7400504e
inc ecx
cmp ecx, esi
jne 0x74005005
test dword [edx + 0x10], 0x8000
je 0x7400504e
mov edx, 0x1e38
lea ecx, [ebp - 0x30]
call fcn.7400365e
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x7400503e
call fcn.740074e0
mov ebx, eax
test ebx, ebx
je 0x7400506d
mov dword [ebx + 0xf58], 3
jmp 0x74005069
mov edx, 0x1e38
lea ecx, [ebp - 0x30]
call fcn.7400365e
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x74005069
call fcn.740074e0
mov ebx, eax
test ebx, ebx
jne 0x74005074
mov edi, 0x8007000e
jmp 0x740050c6
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x4c]
call fcn.740112be
test eax, eax
je 0x7400508b
mov ecx, dword [esi + 0x4c]
call fcn.7401122c
mov eax, dword [ebx]
mov esi, dword [eax + 0x60]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
push eax
push edi
mov ecx, esi
call dword [0x74051130]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x740050d0
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx + 0x5c]
mov ecx, esi
call dword [0x74051130]
mov ecx, ebx
call esi
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, edi
jmp 0x74005137
cmp byte [ebp - 0x1b], 0
je 0x740050dd
or dword [ebx + 0xf04], 0x10
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
test dword [eax + 0xc], 0x8000
je 0x74005113
cmp dword [ebx + 0xf58], 2
jl 0x74005113
wait
fnstcw word [ebp - 0x1c]
mov ax, word [ebp - 0x1c]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 0x20], ax
fldcw word [ebp - 0x20]
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
xor eax, eax
jmp 0x74005137
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
wait
mov dword [ebp - 4], 0xfffffffe
mov eax, 0x80070057
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18