Function at 0x5c004d50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x5c055671
call fcn.5c0554d0
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.5c00785f
test eax, eax
je 0x5c0050a4
mov eax, dword [ebp + 0x14]
mov edx, 0x5c002854
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 0x5c004db7
inc ecx
cmp ecx, edi
jne 0x5c004d9d
call fcn.5c00cb54
test eax, eax
je 0x5c0050a4
lea eax, [ebp - 0x1c]
push eax
push 0x2000000
push ebx
push 0x5c00253c
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c004e4d
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 0x5c002558
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c004e14
cmp dword [ebp - 0x24], edi
jne 0x5c004e14
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5c004e14
push 5
movzx eax, ax
pop ecx
mov dword [ebp - 0x18], eax
cmp ax, cx
jbe 0x5c004e14
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 0x5c002564
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c004e44
cmp dword [ebp - 0x24], edi
jne 0x5c004e44
cmp dword [ebp - 0x28], eax
je 0x5c004e44
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, 0x5c002844
mov ecx, ebx
mov eax, dword [esi + ecx*4]
mov dword [ebp - 0x28], 2
cmp eax, dword [edx + ecx*4]
jne 0x5c004e92
inc ecx
cmp ecx, edi
jne 0x5c004e54
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 0x5c004e8e
test dword [eax + 0x10], 0x10000
je 0x5c004e8e
push 5
pop ecx
mov eax, ecx
jmp 0x5c004ef6
mov eax, ebx
jmp 0x5c004ef6
mov edx, 0x5c002874
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c004f31
inc ecx
cmp ecx, edi
jne 0x5c004e99
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 0x5c004ed2
cmp dword [eax + 0x37c], ebx
je 0x5c004ed2
push 0x10
pop esi
push 4
pop edi
mov eax, dword [ecx + 0x638]
test eax, eax
je 0x5c004eec
cmp dword [eax + 0x14], ebx
je 0x5c004eec
or esi, 8
test di, di
jne 0x5c004eec
push 3
pop edi
test si, si
jne 0x5c004f1a
mov eax, ebx
mov esi, dword [ebp - 0x14]
movzx eax, ax
sub eax, 3
je 0x5c004fbe
sub eax, 1
je 0x5c004fa1
sub eax, 1
je 0x5c004f64
mov eax, 0x8007000e
jmp 0x5c0050a9
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 0x5c004f5f
movzx eax, di
jmp 0x5c004ef6
mov edx, 0x5c0028a4
mov ecx, ebx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x5c004f5a
inc ecx
cmp ecx, edi
jne 0x5c004f38
mov eax, dword [ebp - 0x18]
push 5
pop ecx
cmp ax, word [ebp - 0x28]
jb 0x5c004f56
cmp ax, cx
jbe 0x5c004ef3
mov eax, ecx
jmp 0x5c004ef3
push 3
pop eax
jmp 0x5c004ef3
mov eax, dword [ebp - 0x18]
jmp 0x5c004ef6
mov edx, 0x33c8
lea ecx, [ebp - 0x2c]
call fcn.5c0038f6
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x5c004ff2
mov ecx, edi
call fcn.5c006ec5
push 5
pop eax
mov dword [edi], 0x5c0014d4
mov dword [edi + 4], 0x5c001164
mov dword [edi + 0x2284], eax
mov dword [edi + 0x31ac], 0x100
jmp 0x5c004ff4
mov edx, 0x33c8
lea ecx, [ebp - 0x30]
call fcn.5c0038f6
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x5c004ff2
call fcn.5c006ec5
mov edi, eax
jmp 0x5c004ff4
mov edx, 0x33c8
lea ecx, [ebp - 0x34]
call fcn.5c0038f6
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x5c004ff2
mov ecx, edi
call fcn.5c003ba0
mov dword [edi], 0x5c001174
mov dword [edi + 4], 0x5c001164
mov dword [edi + 0x2284], 3
jmp 0x5c004ff4
mov edi, ebx
test edi, edi
je 0x5c004f10
mov ecx, dword [esi + 0x2c]
call fcn.5c014e71
test eax, eax
je 0x5c005010
mov ecx, dword [esi + 0x2c]
call fcn.5c014e25
cmp byte [ebp - 0xf], 0
je 0x5c00501f
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 [0x5c05e150]
mov ecx, edi
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5c005065
mov edx, dword [edi]
push 1
mov esi, dword [edx + 0xc4]
mov ecx, esi
call dword [0x5c05e150]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x28]
jmp 0x5c0050a9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
test dword [eax + 0xc], 0x80000
jne 0x5c0050ab
cmp dword [edi + 0x2284], 3
jl 0x5c0050ab
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 0x5c0050ab
mov eax, 0x80070057
mov ebx, eax
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, ebx
call fcn.5c05549e
ret 0x14