Function at 0x5c0054a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x5c05fc25
call fcn.5c05faa0
push 5
xor ebx, ebx
pop eax
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x17], bl
mov dword [ebp - 0x24], eax
call dword [sym.imp.DDRAW.dll_AcquireDDThreadLock]
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.5c008096
test eax, eax
je 0x5c0057f4
mov eax, dword [ebp + 0x14]
mov edx, 0x5c002f44
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 0x5c005507
inc ecx
cmp ecx, edi
jne 0x5c0054ed
call fcn.5c075df4
test eax, eax
je 0x5c0057f4
lea eax, [ebp - 0x28]
push eax
push 0x2000000
push ebx
push 0x5c002c2c
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c00559d
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x5c002c48
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c005564
cmp dword [ebp - 0x20], edi
jne 0x5c005564
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5c005564
push 5
movzx eax, ax
pop ecx
mov dword [ebp - 0x24], eax
cmp ax, cx
jbe 0x5c005564
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x5c002c54
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c005594
cmp dword [ebp - 0x20], edi
jne 0x5c005594
cmp dword [ebp - 0x1c], eax
je 0x5c005594
mov byte [ebp - 0x17], 1
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edx, 0x5c002f34
mov ecx, ebx
mov eax, dword [esi + ecx*4]
mov dword [ebp - 0x1c], 2
cmp eax, dword [edx + ecx*4]
jne 0x5c0055e2
inc ecx
cmp ecx, edi
jne 0x5c0055a4
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 0x5c0055de
test dword [eax + 0x10], 0x10000
je 0x5c0055de
push 5
pop ecx
mov eax, ecx
jmp 0x5c005646
mov eax, ebx
jmp 0x5c005646
mov edx, 0x5c002f64
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c005681
inc ecx
cmp ecx, edi
jne 0x5c0055e9
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 0x5c005622
cmp dword [eax + 0x37c], ebx
je 0x5c005622
push 0x10
pop esi
push 4
pop edi
mov eax, dword [ecx + 0x638]
test eax, eax
je 0x5c00563c
cmp dword [eax + 0x14], ebx
je 0x5c00563c
or esi, 8
test di, di
jne 0x5c00563c
push 3
pop edi
test si, si
jne 0x5c00566a
mov eax, ebx
mov esi, dword [ebp - 0x14]
movzx eax, ax
sub eax, 3
je 0x5c00570e
sub eax, 1
je 0x5c0056f1
sub eax, 1
je 0x5c0056b4
mov eax, 0x8007000e
jmp 0x5c0057f9
mov cl, byte [ebp - 0x24]
xor edx, edx
inc edx
movzx eax, si
mov esi, dword [ebp - 0x14]
shl edx, cl
test eax, edx
jne 0x5c0056af
movzx eax, di
jmp 0x5c005646
mov edx, 0x5c002f94
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c0056aa
inc ecx
cmp ecx, edi
jne 0x5c005688
mov eax, dword [ebp - 0x24]
push 5
pop ecx
cmp ax, word [ebp - 0x1c]
jb 0x5c0056a6
cmp ax, cx
jbe 0x5c005643
mov eax, ecx
jmp 0x5c005643
push 3
pop eax
jmp 0x5c005643
mov eax, dword [ebp - 0x24]
jmp 0x5c005646
mov edx, 0x33c8
lea ecx, [ebp - 0x30]
call fcn.5c003f96
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x5c005742
mov ecx, edi
call fcn.5c007669
push 5
pop eax
mov dword [edi], 0x5c0014c4
mov dword [edi + 4], 0x5c0014b4
mov dword [edi + 0x2284], eax
mov dword [edi + 0x31ac], 0x100
jmp 0x5c005744
mov edx, 0x33c8
lea ecx, [ebp - 0x34]
call fcn.5c003f96
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x5c005742
call fcn.5c007669
mov edi, eax
jmp 0x5c005744
mov edx, 0x33c8
lea ecx, [ebp - 0x38]
call fcn.5c003f96
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x5c005742
mov ecx, edi
call fcn.5c00425b
mov dword [edi], 0x5c001164
mov dword [edi + 4], 0x5c0014b4
mov dword [edi + 0x2284], 3
jmp 0x5c005744
mov edi, ebx
test edi, edi
je 0x5c005660
mov ecx, dword [esi + 0x2c]
call fcn.5c015d9a
test eax, eax
je 0x5c005760
mov ecx, dword [esi + 0x2c]
call fcn.5c015d4e
cmp byte [ebp - 0x17], 0
je 0x5c00576f
mov eax, dword [ebp - 0x1c]
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 [0x5c06a150]
mov ecx, edi
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5c0057b5
mov edx, dword [edi]
push 1
mov esi, dword [edx + 0xc4]
mov ecx, esi
call dword [0x5c06a150]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x1c]
jmp 0x5c0057f9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
test dword [eax + 0xc], 0x80000
jne 0x5c0057fb
cmp dword [edi + 0x2284], 3
jl 0x5c0057fb
or dword [edi + 0x2270], 8
wait
fnstcw word [ebp - 0x18]
mov ax, word [ebp - 0x18]
and ax, 0xfcff
or ax, 0x3f
and ax, 0xf3ff
mov word [ebp - 0x14], ax
fldcw word [ebp - 0x14]
jmp 0x5c0057fb
mov eax, 0x80070057
mov ebx, eax
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, ebx
call fcn.5c05fa4f
ret 0x14