Function at 0x5c007c13
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x228
mov eax, 0x5c054e90
call fcn.5c054b6f
mov dword [ebp - 0x230], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.DDRAW.dll_AcquireDDThreadLock]
xor eax, eax
inc eax
mov byte [ebp - 4], al
test esi, esi
jne 0x5c007c64
mov ebx, 0x80070057
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, ebx
call fcn.5c054ac1
ret 0x10
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x214], ebx
push eax
push 0x20019
push ebx
push 0x5c002590
mov esi, ebx
mov dword [ebp - 0x210], ebx
push 0x80000002
mov dword [ebp - 0x20c], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
push 4
pop edi
test eax, eax
jne 0x5c007d8e
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1f0], edi
push eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x1f8]
push eax
push ebx
push 0x5c002808
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c007ce8
cmp dword [ebp - 0x1f8], edi
jne 0x5c007ce8
cmp dword [ebp - 0x1f4], eax
setne al
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1f0], edi
push eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x1f8]
push eax
push ebx
push 0x5c002818
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c007d35
cmp dword [ebp - 0x1f8], edi
jne 0x5c007d35
cmp dword [ebp - 0x1f0], edi
jne 0x5c007d35
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1f0], edi
push eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x1f8]
push eax
push ebx
push 0x5c002828
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c007d82
cmp dword [ebp - 0x1f8], edi
jne 0x5c007d82
cmp dword [ebp - 0x1f0], edi
jne 0x5c007d82
mov esi, dword [ebp - 0x1f4]
mov dword [ebp - 0x20c], esi
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor edx, edx
mov dword [ebp - 0x21c], 0x5c002894
mov eax, ebx
mov dword [ebp - 0x218], 6
lea ecx, [edx + 1]
mov dword [ebp - 0x1f0], ecx
xor edx, edx
mov dword [ebp - 0x1f4], eax
mov eax, dword [eax*4 + 0x5c058a88]
inc edx
test eax, eax
je 0x5c007c54
cmp ecx, edx
jne 0x5c007c54
cmp dword [ebp - 0x210], 0
lea ecx, [eax + 4]
mov edx, dword [eax]
mov dword [ebp - 0x224], ecx
lea ecx, [eax + 0x104]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x208], edx
jne 0x5c007e27
mov ecx, ebx
mov eax, dword [edx + ecx*4]
mov esi, 0x5c0028c4
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x20c]
jne 0x5c007e27
inc ecx
cmp ecx, edi
jne 0x5c007df7
mov ecx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f4]
mov esi, dword [ebp - 0x20c]
inc eax
push 4
pop edi
jmp 0x5c007daf
test esi, esi
jne 0x5c007e41
mov esi, 0x5c0028b4
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c007e41
inc ecx
cmp ecx, edi
jne 0x5c007e32
jmp 0x5c007e0f
mov eax, dword [ebp - 0x230]
mov ecx, ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 4]
mov esi, dword [eax + 4]
mov dword [ebp - 0x200], esi
mov eax, dword [edx + ecx*4]
mov esi, 0x5c002864
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x200]
jne 0x5c007e83
inc ecx
cmp ecx, edi
jne 0x5c007e58
mov eax, dword [esi + 0x478]
test eax, eax
je 0x5c007e83
test dword [eax + 0x10], 0x10000
je 0x5c007e0f
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
lea edx, [ebp - 0x1f8]
call fcn.5c0163ea
test eax, eax
je 0x5c007ed8
cmp eax, 0x80004002
jne 0x5c007e0f
cmp dword [ebp - 0x214], 0
jne 0x5c007e0f
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push esi
push eax
lea edx, [ebp - 0x1f8]
call fcn.5c0152c8
test eax, eax
jne 0x5c007e0f
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x1ec]
push edi
push ecx
lea ecx, [ebp - 0x100]
mov esi, dword [eax]
push ecx
push dword [ebp - 0x200]
mov ecx, dword [esi + 0xc]
push eax
call dword [0x5c05d150]
call dword [esi + 0xc]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x1f8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5c05d150]
call esi
cmp dword [ebp - 0x204], 0
je 0x5c007f33
push dword [ebp - 0x204]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
cmp dword [ebp - 0x200], 0
jne 0x5c007e0f
xor ecx, ecx
inc ecx
cmp word [ebp - 0x2a], cx
jne 0x5c007f4f
xor eax, eax
mov word [ebp - 0x2a], ax
cmp word [ebp - 0x116], cx
jne 0x5c007f61
xor eax, eax
mov word [ebp - 0x116], ax
mov edx, dword [ebp - 0x208]
mov ecx, ebx
mov esi, dword [ebp - 0x21c]
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c007f9f
inc ecx
cmp ecx, edi
jne 0x5c007f6f
or dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x218]
and dword [ebp - 0x100], 0xfffeffff
mov word [ebp - 0x2a], di
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], 0x3f
mov esi, 0x5c002884
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c007fd8
inc ecx
cmp ecx, edi
jne 0x5c007fa6
mov eax, dword [ebp - 0x218]
or dword [ebp - 0x130], 0xffffffff
mov word [ebp - 0x116], di
mov word [ebp - 0x118], ax
mov dword [ebp - 0x114], 0x3f
mov esi, dword [ebp - 0x21c]
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c007fef
inc ecx
cmp ecx, edi
jne 0x5c007fe0
jmp 0x5c008003
mov ecx, ebx
mov esi, 0x5c002864
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c00804f
inc ecx
cmp ecx, edi
jne 0x5c007ff6
lea edi, [ebp - 0x3c]
lea eax, [ebp - 0x100]
mov esi, dword [ebp - 0x1f4]
push dword [ebp - 0x220]
push eax
mov esi, dword [esi*4 + 0x5c058a88]
push dword [ebp - 0x224]
push dword [ebp - 0x228]
mov esi, dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x22c]
mov ecx, esi
call dword [0x5c05d150]
call esi
mov ecx, eax
mov dword [ebp - 0x1f0], ecx
jmp 0x5c007e15
lea edi, [ebp - 0x128]
lea eax, [ebp - 0x1ec]
jmp 0x5c00800c