Function at 0x301d8852
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x301d9597
call fcn.300582e3
sub esp, 0x694
mov eax, dword [section..cdata]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x248], bx
mov ecx, edx
lea edi, [ebp - 0x246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xb
pop ecx
xor eax, eax
mov word [ebp - 0x40], bx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x450], bx
mov ecx, edx
lea edi, [ebp - 0x44e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x450]
mov esi, 0x104
push esi
push eax
push ebx
mov dword [ebp - 0x698], eax
call dword [0x300011fc]
cmp eax, ebx
jbe 0x301d8901
cmp eax, esi
jae 0x301d8901
lea eax, [ebp + eax*2 - 0x452]
jmp 0x301d88e1
cmp word [eax], 0x5c
je 0x301d88f7
dec eax
dec eax
lea ecx, [ebp - 0x450]
cmp eax, ecx
mov dword [ebp - 0x698], eax
ja 0x301d88d9
cmp word [eax], 0x5c
jne 0x301d8908
inc eax
inc eax
mov dword [ebp - 0x698], eax
jmp 0x301d8908
mov word [ebp - 0x450], bx
mov dword [ebp - 0x69c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x69c]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x300a8048
push 0x80000000
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x301d89db
lea eax, [ebp - 0x694]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x694], ebx
push dword [ebp - 0x69c]
call esi
test eax, eax
jne 0x301d89c7
lea eax, [ebp - 0x690]
push eax
push edi
push ebx
push 0x301d8bd0
push dword [ebp - 0x694]
mov dword [ebp - 0x690], ebx
call esi
test eax, eax
jne 0x301d89b3
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push 0x30088700
push dword [ebp - 0x690]
mov dword [ebp - 0x6a0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x301d89ac
mov word [ebp - 0x42], bx
jmp 0x301d89b3
mov word [ebp - 0x248], bx
cmp dword [ebp - 0x690], ebx
je 0x301d89c7
push dword [ebp - 0x690]
call dword [entry0]
cmp dword [ebp - 0x694], ebx
je 0x301d89db
push dword [ebp - 0x694]
call dword [entry0]
cmp word [ebp - 0x248], bx
je 0x301d8ac7
push 0x301d8bb8
call dword [0x30001338]
mov esi, dword [fcn.30001344]
push 0x301d8ba0
push eax
mov dword [ebp - 0x690], eax
call esi
lea ecx, [ebp - 0x694]
push ecx
lea ecx, [ebp - 0x248]
push ecx
call eax
cmp eax, ebx
mov dword [ebp - 0x694], eax
jne 0x301d8a2a
mov word [ebp - 0x40], bx
jmp 0x301d8ac7
push eax
push ebx
call dword [0x30001300]
push eax
call dword [0x30001304]
mov edi, eax
cmp edi, ebx
je 0x301d8ac7
push 0x301d8b8c
push dword [ebp - 0x690]
call esi
push edi
push dword [ebp - 0x694]
lea ecx, [ebp - 0x248]
push ebx
push ecx
call eax
test eax, eax
je 0x301d8ab8
push 0x301d8b7c
push dword [ebp - 0x690]
call esi
lea ecx, [ebp - 0x690]
push ecx
lea ecx, [ebp - 0x6a0]
push ecx
push 0x301d8b4c
push edi
call eax
test eax, eax
je 0x301d8ab8
mov eax, dword [ebp - 0x6a0]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x40]
push 0x301d8b64
push eax
call dword [0x300016c4]
add esp, 0x18
push edi
push ebx
call dword [0x30001300]
push eax
call dword [0x30001308]
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x68c], bx
mov ecx, 0x8e
lea edi, [ebp - 0x68a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x68c]
push 0x301d8b50
push eax
call dword [0x300016c4]
add esp, 0x14
lea eax, [ebp - 0x68c]
push eax
push 0x5330
push 4
push dword [ebp - 0x698]
call fcn.301d85c7
cmp dword [ebp - 0x69c], ebx
mov esi, eax
je 0x301d8b31
push dword [ebp - 0x69c]
call dword [entry0]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.30056b36
leave
ret 4