Function at 0x74005720
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
push 0x740575f0
call fcn.74045f94
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x1f], bl
call dword [sym.imp.DDRAW.dll_AcquireDDThreadLock]
wait
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.74008cd8
test eax, eax
je 0x7400593c
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 - 0x24], eax
push 4
pop esi
cmp dword [ebp + 0x1c], 3
jb 0x7400578e
mov edx, 0x74002ea8
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x7400578e
inc ecx
cmp ecx, esi
jne 0x74005776
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
jmp 0x7400594a
mov edx, 0x74002e98
mov ecx, ebx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x740057b5
inc ecx
cmp ecx, esi
jne 0x74005795
call fcn.7406efc1
test eax, eax
jne 0x740057b5
mov edi, 0x80070057
jmp 0x740058de
lea eax, [ebp - 0x28]
push eax
push 0x74002d0c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x74005806
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0x74002d28
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x740057fd
cmp dword [ebp - 0x30], esi
jne 0x740057fd
cmp dword [ebp - 0x34], eax
je 0x740057fd
mov byte [ebp - 0x1f], 1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x478]
test edx, edx
je 0x74005867
mov ecx, ebx
mov eax, dword [edi + ecx*4]
mov edi, 0x74002e88
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp + 8]
jne 0x74005867
inc ecx
cmp ecx, esi
jne 0x7400581e
test dword [edx + 0x10], 0x8000
je 0x74005867
mov edx, 0x1e38
lea ecx, [ebp - 0x38]
call fcn.74003e46
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x74005857
call fcn.74007cba
mov ebx, eax
test ebx, ebx
je 0x74005886
mov dword [ebx + 0xf58], 3
jmp 0x74005882
mov edx, 0x1e38
lea ecx, [ebp - 0x3c]
call fcn.74003e46
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x74005882
call fcn.74007cba
mov ebx, eax
test ebx, ebx
jne 0x7400588d
mov edi, 0x8007000e
jmp 0x740058de
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x4c]
call fcn.740119a8
test eax, eax
je 0x740058a4
mov ecx, dword [esi + 0x4c]
call fcn.74011920
mov esi, dword [ebx]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x24]
push eax
push edi
mov ecx, dword [esi + 0x60]
call dword [0x74063138]
mov ecx, ebx
call dword [esi + 0x60]
mov edi, eax
test edi, edi
je 0x740058e8
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx + 0x5c]
mov ecx, esi
call dword [0x74063138]
mov ecx, ebx
call esi
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, edi
jmp 0x7400594f
cmp byte [ebp - 0x1f], 0
je 0x740058f5
or dword [ebx + 0xf04], 0x10
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
test dword [eax + 0xc], 0x8000
je 0x7400592b
cmp dword [ebx + 0xf58], 2
jl 0x7400592b
wait
fnstcw word [ebp - 0x20]
mov ax, word [ebp - 0x20]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 0x24], ax
fldcw word [ebp - 0x24]
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
xor eax, eax
jmp 0x7400594f
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
wait
mov dword [ebp - 4], 0xfffffffe
mov eax, 0x80070057
call fcn.74045fdc
ret 0x18