Function at 0x10059330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a968
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10094610]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x1c]
push 0x13880
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
call fcn.1006555b
push 0x9c40
mov edi, eax
mov dword [ebp - 0x44], 0x9c40
call fcn.1006555b
mov dword [ebp - 0x30], eax
xor eax, eax
xor edx, edx
add esp, 8
mov dword [ebp - 0x34], 0x9c40
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], eax
cmp dword [esi], eax
jne 0x10059414
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x50]
push esi
or ecx, 1
push ecx
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10059414
test edi, edi
je 0x100593eb
push edi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100593fb
push eax
call fcn.10066c8a
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x1005940d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100660ce
add esp, 4
xor al, al
jmp 0x1005954e
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x40]
push edx
mov edx, dword [ecx]
push 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi]
push edi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1005944e
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x100593de
test eax, eax
je 0x10059488
test edi, edi
je 0x1005945f
push edi
call fcn.10066c8a
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1005946f
push eax
call fcn.10066c8a
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x1005940d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100660ce
add esp, 4
xor al, al
jmp 0x1005954e
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10059490
mov ecx, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.1004dce6
cmp dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x30]
je 0x100594e3
cmp byte [esi], 0
je 0x100594e3
mov eax, dword [ebp - 0x40]
cmp eax, 1
jne 0x100594ca
push esi
lea ecx, [ebp - 0x2c]
call fcn.1004fd40
jmp 0x100594e3
cmp eax, 4
jne 0x100594e3
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0x2c]
push 0x10082890
push edx
call fcn.1004fe20
add esp, 0xc
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x1005951b
cmp dword [ebp - 0x18], 8
mov esi, dword [ebp - 0x2c]
jae 0x100594f8
mov esi, eax
mov eax, esi
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10059500
sub eax, ecx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.1004dce6
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
inc dword [eax]
test edi, edi
je 0x1005952d
push edi
call fcn.10066c8a
add esp, 4
test esi, esi
je 0x1005953a
push esi
call fcn.10066c8a
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x1005954c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100660ce
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100660ff
mov esp, ebp
pop ebp
ret 0x18