Function at 0x5fd99687
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
or ebx, 0xffffffff
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x10c], eax
or eax, ebx
push edi
mov dword [ebp - 0x100], eax
mov edi, ecx
mov eax, dword [0x5fde9034]
mov dword [ebp - 0x110], edi
cmp eax, ebx
je 0x5fdae4a2
cmp eax, 1
jne 0x5fd9999c
mov ecx, dword [0x5fde92c4]
push esi
call fcn.5fd98cf1
mov ecx, dword [0x5fde92c0]
call fcn.5fd98d12
mov esi, dword [0x5fde9034]
cmp esi, 1
jne 0x5fd9999b
test edi, edi
je 0x5fd9999b
mov eax, dword [0x5fde9024]
test eax, eax
je 0x5fd99722
xor ebx, ebx
cmp eax, 0x5fde996c
setne bl
mov ecx, dword [0x5fde9014]
cmp ebx, 0xffffffff
je 0x5fdae4b2
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
cmp ebx, 0xffffffff
je 0x5fd99747
test ebx, ebx
jne 0x5fdae4c0
mov edx, eax
neg edx
sbb edx, edx
and edx, 2
push 5
pop ecx
call fcn.5fd96c99
mov esi, dword [0x5fde9034]
cmp dword [edi + 0x30], 0
je 0x5fd997a7
mov eax, dword [edi + 0x60]
test eax, eax
je 0x5fd997a7
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5fd997a7
mov esi, dword [ebp - 0x104]
lea edx, [eax + 0x20]
mov edi, esi
movzx eax, word [edx]
dec eax
dec eax
jne 0x5fdae4d3
inc esi
add edx, 0x40
dec ecx
jne 0x5fd9977d
mov dword [ebp - 0x108], edi
mov edi, dword [ebp - 0x110]
mov dword [ebp - 0x104], esi
mov esi, dword [0x5fde9034]
xor ebx, ebx
inc ebx
cmp esi, ebx
jne 0x5fd997d2
mov edx, dword [ebp - 0x104]
push 6
pop ecx
call fcn.5fd96c99
cmp dword [0x5fde9034], ebx
jne 0x5fd997d2
mov edx, dword [ebp - 0x108]
push 7
pop ecx
call fcn.5fd96c99
mov ecx, dword [0x5fdea930]
cmp ecx, 0xffffffff
jne 0x5fdac34b
cmp dword [edi + 0x30], 0
je 0x5fd998c6
mov esi, dword [edi + 0x50]
test esi, esi
je 0x5fd998c6
push 0x5fd999b0
mov edx, pe_nt_image_headers32
lea ecx, [ebp - 0xf4]
call fcn.5fd9a15e
test eax, eax
js 0x5fd998c6
push esi
lea ecx, [ebp - 0xf4]
call fcn.5fd9a81d
test eax, eax
js 0x5fd998c6
and dword [ebp - 0xfc], 0
lea eax, [ebp - 0xfc]
push eax
push 0
push 0
push 2
push 0x5fd9392c
lea eax, [ebp - 0xf4]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x5fd99863
cmp dword [ebp - 0xfc], 0xe
ja 0x5fdac355
push 0x5fd99a30
mov edx, pe_nt_image_headers32
lea ecx, [ebp - 0xf4]
call fcn.5fd9a15e
test eax, eax
js 0x5fd998c6
push esi
lea ecx, [ebp - 0xf4]
call fcn.5fd9a81d
test eax, eax
js 0x5fd998c6
and dword [ebp - 0xfc], 0
lea eax, [ebp - 0xfc]
push eax
push 0
push 0
push 2
push 0x5fd9392c
lea eax, [ebp - 0xf4]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x5fd998c6
cmp dword [ebp - 0xfc], 4
mov ecx, ebx
ja 0x5fd998cc
mov ecx, dword [ebp - 0xf8]
call fcn.5fd99ab5
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5fda7484
mov ecx, dword [eax]
mov eax, dword [0x5fde9034]
cmp eax, ebx
jne 0x5fd998f6
push 0xa
mov edx, ecx
pop ecx
call fcn.5fd96c99
mov eax, dword [0x5fde9034]
mov ecx, dword [0x5fde902c]
cmp ecx, 0xffffffff
je 0x5fd99918
cmp eax, ebx
jne 0x5fd99918
xor edx, edx
test ecx, ecx
setne dl
xor ecx, ecx
call fcn.5fd96c99
mov eax, dword [0x5fde9034]
cmp dword [edi + 0x30], 0
je 0x5fd9997d
mov eax, dword [ebp - 0x100]
mov ecx, edi
xor esi, esi
cmp dword [ecx + 0x30], esi
jbe 0x5fd9993e
lea edx, [ecx + 0x78]
test dword [edx], 0x20000000
je 0x5fdac339
mov eax, ebx
cmp eax, 0xffffffff
je 0x5fdac369
test eax, eax
je 0x5fdac36b
mov dword [ebp - 0x100], eax
cmp eax, 0xffffffff
mov eax, dword [0x5fde9034]
je 0x5fd9997d
cmp eax, ebx
jne 0x5fd9997d
mov eax, dword [ebp - 0x100]
xor edx, edx
test eax, eax
push 0xb
setne dl
pop ecx
call fcn.5fd96c99
mov eax, dword [0x5fde9034]
mov edx, dword [0x5fdea938]
cmp edx, 0xffffffff
jne 0x5fdae4e2
mov edx, dword [0x5fdea934]
cmp edx, 0xffffffff
jne 0x5fdac35c
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.5fd83560
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
jmp 0x5fd998de
inc esi
add edx, 0x68
cmp esi, dword [ecx + 0x30]
jae 0x5fd9993e
jmp 0x5fd99930
call fcn.5fdd47ad
jmp 0x5fd997e1
mov ecx, ebx
jmp 0x5fd998cc
cmp eax, ebx
je 0x5fdacdb6
jmp 0x5fd9999b
xor eax, eax
mov ecx, dword [ecx]
cmp ecx, edi
je 0x5fd9994f
jmp 0x5fd99926
push 0xd
pop ecx
call fcn.5fd96c99
jmp 0x5fd9999b
call dword [sym.imp.ntdll.dll_WinSqmIsOptedIn]
mov dword [0x5fde9034], eax
jmp 0x5fd996d8
cmp ecx, 0xffffffff
jne 0x5fd99731
jmp 0x5fd9975e
xor edx, edx
test eax, eax
setne dl
lea edx, [edx*2 + 1]
jmp 0x5fd99750
sub eax, 0x15
jne 0x5fd99789
inc edi
jmp 0x5fd99789
cmp eax, ebx
jne 0x5fd9998c
push 0xc
pop ecx
call fcn.5fd96c99
mov eax, dword [0x5fde9034]
jmp 0x5fd9998c