Function at 0x5b9140
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [ebx + 0x90]
push 0x5c
lea esi, [ebx + 0xf0e]
push esi
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
call fcn.005c1800
test eax, eax
jge 0x5b91af
mov eax, dword [ebx + 0x90]
push 0x5c
push esi
lea edx, [esp + 0x18]
push edx
push eax
call fcn.005c0810
test eax, eax
jl 0x5b937c
mov edx, dword [ebx + 0x90]
push 0x5c
push esi
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.005c1800
test eax, eax
jl 0x5b937c
mov eax, dword [esp + 0x10]
push eax
call fcn.005c13c0
test eax, eax
je 0x5b937c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.005c0f20
test eax, eax
jl 0x5b937c
mov edx, dword [esp + 0x14]
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x8c]
push ecx
push ebp
push edx
xor esi, esi
mov dword [esp + 0x38], 0x5a
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x5b937c
push edi
jmp 0x5b9210
inc esi
cmp eax, ebp
mov dword [esp + 0x28], esi
je 0x5b9224
cmp eax, 0xea
jne 0x5b9334
mov ecx, dword [ebx + 0x90]
push 7
lea eax, [esp + 0x38]
push eax
push ecx
call fcn.005c26c0
mov dx, word [esp + 0x3e]
mov ax, word [esp + 0x40]
push 0x32
lea ecx, [esp + 0xdc]
mov word [esp + 0x48], dx
push ecx
lea edx, [esp + 0x84]
push edx
mov word [esp + 0x52], ax
mov word [esp + 0x54], bp
call fcn.005c05c0
test eax, eax
jl 0x5b9282
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.005c4506
add esp, 8
jmp 0x5b9287
mov word [esp + 0x44], bp
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
mov dword [esp + 0x18], ebp
call fcn.005b82c0
test eax, eax
jl 0x5b9334
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.005bd160
movzx ecx, ax
cmp ecx, dword [esp + 0x110]
jne 0x5b9327
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebp
lea eax, [esp + 0x88]
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b9327
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x5f7198
push edx
mov dword [esp + 0x40], 4
call fcn.005c1080
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
jl 0x5b9323
call sym.vidcap60.exe__SfSpike2GetMachineCode_0
cmp dword [esp + 0x24], eax
je 0x5b9366
mov esi, dword [esp + 0x28]
cmp edi, ebp
je 0x5b9334
push edi
call fcn.00404b90
add esp, 4
mov eax, dword [esp + 0x18]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x90]
push edx
push esi
push eax
mov dword [esp + 0x3c], 0x5a
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x5b9210
jmp 0x5b937b
cmp edi, ebp
je 0x5b9373
push edi
call fcn.00404b90
add esp, 4
mov dword [esp + 0x20], 1
pop edi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x5b938b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x5b939d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
add esp, 0xfc
ret 4