Function at 0x5d894d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x81d1ec
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 edi, edi
and eax, 2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], eax
je 0x5d896e
mov edi, 1
and ecx, 1
mov dword [esp + 0x14], ecx
je 0x5d897a
or edi, 8
mov eax, dword [esp + 0xd8]
mov ecx, esi
push eax
call fcn.005d7300
mov ecx, esi
mov dword [esp + 0xd0], 0
mov dword [esi], 0x869e2c
call dword [0x869e30]
test al, al
je 0x5d8a22
mov eax, dword [esi + 0x28]
test eax, eax
je 0x5d89bb
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x5d89bd
mov eax, 0x8522f8
jmp 0x5d89bd
xor eax, eax
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0x34]
push ecx
push edi
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi + 0x18], eax
lea eax, [esi + 4]
test eax, eax
je 0x5d89de
lea edi, [eax + 4]
jmp 0x5d89e0
xor edi, edi
push str.RegOpenKeyExW__
call fcn.007ac4d2
add esp, 4
mov ecx, edi
push eax
push str.RegOpenKeyExW__
call fcn.00403980
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test al, al
je 0x5d8a1e
push esi
lea ecx, [esp + 0x54]
call fcn.005daf90
lea ecx, [esp + 0x50]
push 0x8c1574
push ecx
call fcn.007ac5c6
mov byte [esi + 0x30], 1
mov eax, dword [esi + 0x18]
mov dword [esp + 0xd0], 1
test eax, eax
mov dword [esi], 0x869f60
jne 0x5d8c29
mov eax, dword [esp + 0xdc]
mov edi, dword [eax + 8]
mov ebp, dword [eax + 4]
cmp edi, edi
mov ebx, edi
je 0x5d8a63
push ebx
mov ecx, ebp
call fcn.005dcac0
add ebx, 0x18
add ebp, 0x18
cmp ebx, edi
jne 0x5d8a51
mov edx, dword [esp + 0xdc]
mov edi, ebp
mov ebx, dword [edx + 8]
cmp ebp, ebx
je 0x5d8a83
push 1
mov ecx, edi
call fcn.00404f20
add edi, 0x18
cmp edi, ebx
jne 0x5d8a73
mov eax, dword [esp + 0xdc]
xor edi, edi
mov dword [eax + 8], ebp
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x5d8c12
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
jne 0x5d8c12
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 0x5d8bf6
test eax, eax
je 0x5d8b69
mov dword [esi + 0x18], eax
lea eax, [esi + 4]
test eax, eax
je 0x5d8b29
lea ebp, [eax + 4]
jmp 0x5d8b2b
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 0x5d8b98
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 0x5d8b16
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 0x5d8c29
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