Function at 0x100054d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x1004cbda
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100661b0]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0xffffffff
xor edi, edi
mov dword [ebp - 4], edi
lea edx, [ebp + 0x30]
push edx
call fcn.100043a0
mov byte [ebp - 4], 1
lea eax, [ebp + 0x50]
push eax
call fcn.100043a0
mov byte [ebp - 4], 2
lea ecx, [ebp + 4]
push ecx
lea edx, [ebp + 0x50]
push edx
push esi
lea ecx, [ebp + 0x30]
call fcn.10004f20
add esp, 0xc
cmp eax, 1
jne 0x10005586
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x50]
call fcn.10004620
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10004620
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.100346f8
add ebp, 0x74
mov esp, ebp
pop ebp
ret
mov ebx, 8
cmp dword [ebp + 0x4c], ebx
mov eax, dword [ebp + 0x38]
jae 0x10005596
lea eax, [ebp + 0x38]
lea ecx, [ebp + 4]
push ecx
push 1
push edi
push eax
mov edx, dword [ebp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000554d
cmp dword [ebp + 0x6c], ebx
mov eax, dword [ebp + 0x58]
jae 0x100055b7
lea eax, [ebp + 0x58]
lea ecx, [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x14]
push edx
push edi
push eax
mov eax, dword [ebp + 4]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
cmp eax, edi
je 0x100055f1
cmp eax, 0xea
jne 0x10005630
mov eax, dword [ebp + 8]
cmp eax, edi
jbe 0x100055e7
cmp eax, 0x2710
jbe 0x100055f4
mov eax, 0x2710
mov dword [ebp + 8], eax
jmp 0x100055f4
mov eax, dword [ebp + 8]
push eax
call fcn.10034bff
add esp, 4
mov edi, eax
mov dword [ebp], edi
test edi, edi
je 0x10005633
cmp dword [ebp + 0x6c], ebx
mov eax, dword [ebp + 0x58]
jae 0x10005611
lea eax, [ebp + 0x58]
lea ecx, [ebp + 8]
push ecx
push edi
push 0
push 0
push eax
mov edx, dword [ebp + 4]
push edx
call esi
test eax, eax
je 0x10005633
push edi
call fcn.10034fb4
add esp, 4
xor edi, edi
mov dword [ebp], edi
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1000569b
cmp dword [ebp - 0x14], 1
jne 0x1000569b
lea ecx, [ebp + 0xc]
push ecx
call fcn.100163f0
mov byte [ebp - 4], 3
push edi
call fcn.10034fb4
mov eax, dword [ebp + 0x24]
add eax, 1
mov dword [ebp + 8], eax
push eax
call fcn.10034bff
add esp, 8
mov edi, eax
mov dword [ebp], edi
cmp dword [ebp + 0x28], 0x10
mov edx, dword [ebp + 0x14]
jae 0x1000567d
lea edx, [ebp + 0x14]
mov ecx, edi
nop
mov al, byte [edx]
mov byte [ecx], al
add edx, 1
add ecx, 1
test al, al
jne 0x10005680
mov byte [ebp - 4], 2
lea edx, [ebp + 0xc]
push edx
call fcn.10003b00
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100056a7
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100056b3
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x50]
call fcn.10004620
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.10004620
mov eax, edi
jmp 0x10005567