Function at 0x5d8670
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x81d1ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xdc]
push edi
mov eax, ecx
xor ebx, ebx
xor edi, edi
and eax, 2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
je 0x5d86b0
mov edi, 1
and ecx, 1
mov dword [esp + 0x14], ecx
je 0x5d86bc
or edi, 8
mov ecx, esi
call fcn.00435900
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0x13]
push ecx
push 0x951210
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
call fcn.005d7070
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], ebx
mov dword [esi + 0x18], ebx
push edi
mov ecx, esi
mov dword [esp + 0xd4], ebx
mov dword [esi], 0x869e2c
call fcn.005d7720
mov eax, dword [esi + 0x18]
mov dword [esp + 0xd0], 1
cmp eax, ebx
mov dword [esi], 0x869f60
jne 0x5d8905
mov eax, dword [esp + 0xdc]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 4]
cmp edi, edi
mov ebx, edi
je 0x5d873f
push ebx
mov ecx, ebp
call fcn.005dcac0
add ebx, 0x18
add ebp, 0x18
cmp ebx, edi
jne 0x5d872d
mov edx, dword [esp + 0xdc]
mov edi, ebp
mov ebx, dword [edx + 8]
cmp ebp, ebx
je 0x5d875f
push 1
mov ecx, edi
call fcn.00404f20
add edi, 0x18
cmp edi, ebx
jne 0x5d874f
mov eax, dword [esp + 0xdc]
xor edi, edi
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x5d88ee
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
jne 0x5d88ee
lea eax, [esp + 0x1b]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0x106
lea ecx, [esp + 0x48]
mov dword [esp + 0x2c], edi
call fcn.005dbcc0
lea edx, [esp + 0x13]
lea ecx, [esp + 0x24]
push edx
mov dword [esp + 0x18], 0x105
call fcn.00478ac0
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push edi
push edi
lea eax, [esp + 0x20]
push edi
push eax
push ecx
push edi
push edx
mov byte [esp + 0xf0], 3
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], edi
call ebx
cmp eax, 0x103
je 0x5d88d2
test eax, eax
je 0x5d8845
mov dword [esi + 0x18], eax
lea eax, [esi + 4]
test eax, eax
je 0x5d8805
lea ebp, [eax + 4]
jmp 0x5d8807
xor ebp, ebp
push str.RegEnumKeyExW__
call fcn.007ac4d2
add esp, 4
mov ecx, ebp
push eax
push str.RegEnumKeyExW__
call fcn.00403980
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
je 0x5d8874
push esi
lea ecx, [esp + 0x54]
call fcn.005daf90
lea ecx, [esp + 0x50]
push 0x8c1574
push ecx
call fcn.007ac5c6
mov eax, dword [esp + 0x40]
push eax
mov ebp, eax
call fcn.007ac4d2
add esp, 4
lea ecx, [esp + 0x24]
push eax
push ebp
call fcn.00403980
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x24]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.005dbd50
push 1
lea ecx, [esp + 0x28]
call fcn.00404f20
lea eax, [esp + 0x13]
lea ecx, [esp + 0x24]
push eax
inc edi
mov dword [esp + 0x18], 0x105
call fcn.00478ac0
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x34]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push edi
push eax
mov byte [esp + 0xf0], 3
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0
call ebx
cmp eax, 0x103
jne 0x5d87f2
push 1
lea ecx, [esp + 0x28]
call fcn.00404f20
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd0], 1
call fcn.0042dc50
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d8905
mov edx, dword [esp + 0xdc]
mov ecx, esi
push edx
call fcn.005d8c50
mov ecx, dword [esp + 0xc8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 0xc