Function at 0x74004e20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
push 0x74045890
call fcn.7403f4e4
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.74008388
test eax, eax
je 0x7400503c
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 0x74004e8e
mov edx, 0x74002628
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x74004e8e
inc ecx
cmp ecx, esi
jne 0x74004e76
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
jmp 0x7400504a
mov edx, 0x74002618
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x74004eb5
inc ecx
cmp ecx, esi
jne 0x74004e95
call fcn.7405ae51
test eax, eax
jne 0x74004eb5
mov edi, 0x80070057
jmp 0x74004fde
lea eax, [ebp - 0x24]
push eax
push 0x7400248c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x74004f06
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 0x74004efd
cmp dword [ebp - 0x2c], esi
jne 0x74004efd
cmp dword [ebp - 0x30], eax
je 0x74004efd
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 0x74004f67
mov ecx, ebx
mov eax, dword [edi + ecx*4]
mov edi, 0x74002608
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp + 8]
jne 0x74004f67
inc ecx
cmp ecx, esi
jne 0x74004f1e
test dword [edx + 0x10], 0x8000
je 0x74004f67
mov edx, 0x1e38
lea ecx, [ebp - 0x34]
call fcn.740035d6
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x74004f57
call fcn.7400739a
mov ebx, eax
test ebx, ebx
je 0x74004f86
mov dword [ebx + 0xf58], 3
jmp 0x74004f82
mov edx, 0x1e38
lea ecx, [ebp - 0x38]
call fcn.740035d6
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x74004f82
call fcn.7400739a
mov ebx, eax
test ebx, ebx
jne 0x74004f8d
mov edi, 0x8007000e
jmp 0x74004fde
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x4c]
call fcn.74010c8d
test eax, eax
je 0x74004fa4
mov ecx, dword [esi + 0x4c]
call fcn.74010c07
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 0x74004fe8
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 0x7400504f
cmp byte [ebp - 0x1b], 0
je 0x74004ff5
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 0x7400502b
cmp dword [ebx + 0xf58], 2
jl 0x7400502b
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 0x7400504f
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