Function at 0x5c0083e5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x228
mov eax, 0x5c05fea8
call fcn.5c05fb0c
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 0x5c008436
mov ebx, 0x80070057
call dword [sym.imp.DDRAW.dll_ReleaseDDThreadLock]
mov eax, ebx
call fcn.5c05fa5e
ret 0x10
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x214], ebx
push eax
push 0x20019
push ebx
push 0x5c002c60
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 0x5c008560
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 0x5c002ed8
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c0084ba
cmp dword [ebp - 0x1f8], edi
jne 0x5c0084ba
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 0x5c002ee8
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c008507
cmp dword [ebp - 0x1f8], edi
jne 0x5c008507
cmp dword [ebp - 0x1f0], edi
jne 0x5c008507
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 0x5c002ef8
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x5c008554
cmp dword [ebp - 0x1f8], edi
jne 0x5c008554
cmp dword [ebp - 0x1f0], edi
jne 0x5c008554
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], 0x5c002f64
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 + 0x5c0650a0]
inc edx
test eax, eax
je 0x5c008426
cmp ecx, edx
jne 0x5c008426
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 0x5c0085f9
mov ecx, ebx
mov eax, dword [edx + ecx*4]
mov esi, 0x5c002f94
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x20c]
jne 0x5c0085f9
inc ecx
cmp ecx, edi
jne 0x5c0085c9
mov ecx, dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1f4]
mov esi, dword [ebp - 0x20c]
inc eax
push 4
pop edi
jmp 0x5c008581
test esi, esi
jne 0x5c008613
mov esi, 0x5c002f84
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c008613
inc ecx
cmp ecx, edi
jne 0x5c008604
jmp 0x5c0085e1
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, 0x5c002f34
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x200]
jne 0x5c008655
inc ecx
cmp ecx, edi
jne 0x5c00862a
mov eax, dword [esi + 0x478]
test eax, eax
je 0x5c008655
test dword [eax + 0x10], 0x10000
je 0x5c0085e1
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
lea edx, [ebp - 0x1f8]
call fcn.5c01720a
test eax, eax
je 0x5c0086aa
cmp eax, 0x80004002
jne 0x5c0085e1
cmp dword [ebp - 0x214], 0
jne 0x5c0085e1
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push esi
push eax
lea edx, [ebp - 0x1f8]
call fcn.5c016078
test eax, eax
jne 0x5c0085e1
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 [0x5c06a150]
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 [0x5c06a150]
call esi
cmp dword [ebp - 0x204], 0
je 0x5c008705
push dword [ebp - 0x204]
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
cmp dword [ebp - 0x200], 0
jne 0x5c0085e1
xor ecx, ecx
inc ecx
cmp word [ebp - 0x2a], cx
jne 0x5c008721
xor eax, eax
mov word [ebp - 0x2a], ax
cmp word [ebp - 0x116], cx
jne 0x5c008733
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 0x5c008771
inc ecx
cmp ecx, edi
jne 0x5c008741
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, 0x5c002f54
mov ecx, ebx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c0087aa
inc ecx
cmp ecx, edi
jne 0x5c008778
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 0x5c0087c1
inc ecx
cmp ecx, edi
jne 0x5c0087b2
jmp 0x5c0087d5
mov ecx, ebx
mov esi, 0x5c002f34
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x5c008821
inc ecx
cmp ecx, edi
jne 0x5c0087c8
lea edi, [ebp - 0x3c]
lea eax, [ebp - 0x100]
mov esi, dword [ebp - 0x1f4]
push dword [ebp - 0x220]
push eax
mov esi, dword [esi*4 + 0x5c0650a0]
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 [0x5c06a150]
call esi
mov ecx, eax
mov dword [ebp - 0x1f0], ecx
jmp 0x5c0085e7
lea edi, [ebp - 0x128]
lea eax, [ebp - 0x1ec]
jmp 0x5c0087de