Function at 0x5c004d90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x5c054c71
call fcn.5c054ad0
push 5
xor ebx, ebx
pop eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xf], bl
mov dword [ebp - 0x18], eax
call dword [sym.imp.DDRAW.dll_AcquireDDThreadLock]
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.5c0078df
test eax, eax
je 0x5c0050e4
mov eax, dword [ebp + 0x14]
mov edx, 0x5c002874
push 4
mov ecx, ebx
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c004df7
inc ecx
cmp ecx, edi
jne 0x5c004ddd
call fcn.5c067ce4
test eax, eax
je 0x5c0050e4
lea eax, [ebp - 0x1c]
push eax
push 0x2000000
push ebx
push 0x5c00255c
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c004e8d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x5c002578
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c004e54
cmp dword [ebp - 0x24], edi
jne 0x5c004e54
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5c004e54
push 5
movzx eax, ax
pop ecx
mov dword [ebp - 0x18], eax
cmp ax, cx
jbe 0x5c004e54
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x5c002584
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c004e84
cmp dword [ebp - 0x24], edi
jne 0x5c004e84
cmp dword [ebp - 0x28], eax
je 0x5c004e84
mov byte [ebp - 0xf], 1
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edx, 0x5c002864
mov ecx, ebx
mov eax, dword [esi + ecx*4]
mov dword [ebp - 0x28], 2
cmp eax, dword [edx + ecx*4]
jne 0x5c004ed2
inc ecx
cmp ecx, edi
jne 0x5c004e94
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x478]
test eax, eax
je 0x5c004ece
test dword [eax + 0x10], 0x10000
je 0x5c004ece
push 5
pop ecx
mov eax, ecx
jmp 0x5c004f36
mov eax, ebx
jmp 0x5c004f36
mov edx, 0x5c002894
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c004f71
inc ecx
cmp ecx, edi
jne 0x5c004ed9
mov eax, dword [ebp - 0x14]
mov esi, ebx
mov edi, ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x170]
test eax, eax
je 0x5c004f12
cmp dword [eax + 0x37c], ebx
je 0x5c004f12
push 0x10
pop esi
push 4
pop edi
mov eax, dword [ecx + 0x638]
test eax, eax
je 0x5c004f2c
cmp dword [eax + 0x14], ebx
je 0x5c004f2c
or esi, 8
test di, di
jne 0x5c004f2c
push 3
pop edi
test si, si
jne 0x5c004f5a
mov eax, ebx
mov esi, dword [ebp - 0x14]
movzx eax, ax
sub eax, 3
je 0x5c004ffe
sub eax, 1
je 0x5c004fe1
sub eax, 1
je 0x5c004fa4
mov eax, 0x8007000e
jmp 0x5c0050e9
mov cl, byte [ebp - 0x18]
xor edx, edx
inc edx
movzx eax, si
mov esi, dword [ebp - 0x14]
shl edx, cl
test eax, edx
jne 0x5c004f9f
movzx eax, di
jmp 0x5c004f36
mov edx, 0x5c0028c4
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c004f9a
inc ecx
cmp ecx, edi
jne 0x5c004f78
mov eax, dword [ebp - 0x18]
push 5
pop ecx
cmp ax, word [ebp - 0x28]
jb 0x5c004f96
cmp ax, cx
jbe 0x5c004f33
mov eax, ecx
jmp 0x5c004f33
push 3
pop eax
jmp 0x5c004f33
mov eax, dword [ebp - 0x18]
jmp 0x5c004f36
mov edx, 0x33c8
lea ecx, [ebp - 0x2c]
call fcn.5c003936
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x5c005032
mov ecx, edi
call fcn.5c006f45
push 5
pop eax
mov dword [edi], 0x5c0014d4
mov dword [edi + 4], 0x5c001164
mov dword [edi + 0x2284], eax
mov dword [edi + 0x31ac], 0x100
jmp 0x5c005034
mov edx, 0x33c8
lea ecx, [ebp - 0x30]
call fcn.5c003936
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5c005032
call fcn.5c006f45
mov edi, eax
jmp 0x5c005034
mov edx, 0x33c8
lea ecx, [ebp - 0x34]
call fcn.5c003936
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x5c005032
mov ecx, edi
call fcn.5c003be0
mov dword [edi], 0x5c001174
mov dword [edi + 4], 0x5c001164
mov dword [edi + 0x2284], 3
jmp 0x5c005034
mov edi, ebx
test edi, edi
je 0x5c004f50
mov ecx, dword [esi + 0x2c]
call fcn.5c014fe1
test eax, eax
je 0x5c005050
mov ecx, dword [esi + 0x2c]
call fcn.5c014f95
cmp byte [ebp - 0xf], 0
je 0x5c00505f
mov eax, dword [ebp - 0x28]
or dword [edi + 0x2270], eax
push dword [ebp + 0x14]
mov esi, dword [edi]
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x10]
mov esi, dword [esi + 0xc8]
mov ecx, esi
push eax
push dword [ebp + 8]
call dword [0x5c05d150]
mov ecx, edi
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5c0050a5
mov edx, dword [edi]
push 1
mov esi, dword [edx + 0xc4]
mov ecx, esi
call dword [0x5c05d150]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x28]
jmp 0x5c0050e9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
test dword [eax + 0xc], 0x80000
jne 0x5c0050eb
cmp dword [edi + 0x2284], 3
jl 0x5c0050eb
or dword [edi + 0x2270], 8
wait
fnstcw word [ebp - 0x10]
mov ax, word [ebp - 0x10]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 0x14], ax
fldcw word [ebp - 0x14]
jmp 0x5c0050eb
mov eax, 0x80070057
mov ebx, eax
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, ebx
call fcn.5c054a9e
ret 0x14