Function at 0x74004e20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
push 0x74045750
call fcn.7403f3b4
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.74008378
test eax, eax
je 0x74005033
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 0x74004e85
mov edx, 0x74002628
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x74004e85
inc ecx
cmp ecx, esi
jne 0x74004e76
jmp 0x74004ea2
mov edx, 0x74002618
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x74004eac
inc ecx
cmp ecx, esi
jne 0x74004e8c
call fcn.7405aeba
test eax, eax
jne 0x74004eac
mov edi, 0x80070057
jmp 0x74004fd5
lea eax, [ebp - 0x24]
push eax
push 0x7400248c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x74004efd
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 0x740024a8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x74004ef4
cmp dword [ebp - 0x2c], esi
jne 0x74004ef4
cmp dword [ebp - 0x30], eax
je 0x74004ef4
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 0x74004f5e
mov ecx, ebx
mov eax, dword [edi + ecx*4]
mov edi, 0x74002608
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp + 8]
jne 0x74004f5e
inc ecx
cmp ecx, esi
jne 0x74004f15
test dword [edx + 0x10], 0x8000
je 0x74004f5e
mov edx, 0x1e38
lea ecx, [ebp - 0x34]
call fcn.740035d6
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x74004f4e
call fcn.7400738a
mov ebx, eax
test ebx, ebx
je 0x74004f7d
mov dword [ebx + 0xf58], 3
jmp 0x74004f79
mov edx, 0x1e38
lea ecx, [ebp - 0x38]
call fcn.740035d6
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x74004f79
call fcn.7400738a
mov ebx, eax
test ebx, ebx
jne 0x74004f84
mov edi, 0x8007000e
jmp 0x74004fd5
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x4c]
call fcn.74010c4d
test eax, eax
je 0x74004f9b
mov ecx, dword [esi + 0x4c]
call fcn.74010bc7
mov esi, dword [ebx]
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, dword [esi + 0x60]
call dword [0x74050130]
mov ecx, ebx
call dword [esi + 0x60]
mov edi, eax
test edi, edi
je 0x74004fdf
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx + 0x5c]
mov ecx, esi
call dword [0x74050130]
mov ecx, ebx
call esi
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, edi
jmp 0x74005046
cmp byte [ebp - 0x1b], 0
je 0x74004fec
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 0x74005022
cmp dword [ebx + 0xf58], 2
jl 0x74005022
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 0x74005046
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