Function at 0xf014316
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0xf062038]
push ebx
push esi
push edi
xor edi, edi
cmp dword [0xf06d804], edi
push 0x18
mov dword [ebp - 4], eax
pop ebx
je 0xf014376
mov dword [ebp - 0x83c], 0xc0000
mov dword [ebp - 0x838], 0x8000
mov dword [ebp - 0x834], 0xf0000
mov dword [ebp - 0x830], 0x10000
mov dword [ebp - 0x808], 2
lea esi, [ebp - 0x83c]
jmp 0xf014472
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0xf002680
lea eax, [ebp - 0x820]
push eax
call esi
lea eax, [ebp - 0x820]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x86c]
push eax
push 0x20019
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x868], edi
mov dword [ebp - 0x860], 0x40
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x858], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0xf0145f5
push 0xf002654
lea eax, [ebp - 0x820]
push eax
call esi
lea eax, [ebp - 0x818]
push eax
push 0x800
lea eax, [ebp - 0x804]
push eax
push 1
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x810]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jge 0xf014424
push dword [ebp - 0x810]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0xf0145f5
cmp dword [ebp - 0x7f8], 0x20
mov eax, dword [ebp - 0x7fc]
lea eax, [ebp + eax - 0x804]
jb 0xf014466
cmp dword [eax + 0xc], 2
jb 0xf014466
mov ecx, dword [eax + 0x14]
lea ecx, [ecx + eax + 0x20]
mov edx, ecx
sub edx, eax
add edx, ebx
cmp dword [ebp - 0x7f8], edx
jb 0xf014413
mov eax, dword [ecx + 4]
shr eax, 3
lea esi, [ecx + 0x10]
mov dword [ebp - 0x808], eax
jmp 0xf014472
mov esi, dword [ebp - 0x818]
mov dword [ebp - 0x808], edi
push 0x40
pop eax
push edi
push 0x4000000
push eax
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x854]
push eax
push 0xa
push 0xf09bf34
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x82c], 0x40000
mov dword [ebp - 0x828], edi
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jl 0xf0145f5
cmp word [ebp - 0x808], di
mov dword [0xf09bf38], edi
mov dword [ebp - 0x80c], 0xc0000
jbe 0xf0145d5
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, 0xfffff000
mov ebx, ecx
and ebx, eax
sub edx, ebx
lea edi, [edx + ecx + 0xfff]
and edi, eax
cmp word [ebp - 0x808], 1
jbe 0xf014534
lea eax, [esi + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [eax]
lea edx, [edi + ebx]
cmp edx, eax
jbe 0xf014534
sub eax, ecx
add dword [esi + 0xc], eax
mov esi, dword [ebp - 0x824]
mov dword [esi], ecx
jmp 0xf0145af
mov eax, dword [ebp - 0x80c]
cmp ebx, eax
jne 0xf014567
push 0xfffe
push edi
push eax
call fcn.0f00e94a
test eax, eax
je 0xf0145f5
add dword [ebp - 0x80c], edi
add esi, 8
add dword [ebp - 0x808], 0xffff
jmp 0xf01458b
jbe 0xf0145ac
cmp ebx, 0x100000
ja 0xf0145ac
push 0xffff
mov ecx, ebx
sub ecx, eax
push ecx
push eax
call fcn.0f00e94a
test eax, eax
je 0xf0145f5
mov dword [ebp - 0x80c], ebx
cmp dword [0xf09bf38], 0
jne 0xf01459b
mov dword [0xf09bf38], eax
jmp 0xf0145a4
mov ecx, dword [ebp - 0x814]
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x814], eax
jmp 0xf0145b9
add esi, 8
add dword [ebp - 0x808], 0xffff
cmp word [ebp - 0x808], 0
ja 0xf0144f0
cmp dword [ebp - 0x80c], 0x100000
jae 0xf014611
xor edi, edi
mov eax, 0x100000
sub eax, dword [ebp - 0x80c]
push 0xffff
push eax
push dword [ebp - 0x80c]
call fcn.0f00e94a
cmp eax, edi
jne 0xf0145f9
xor eax, eax
jmp 0xf014614
cmp dword [0xf09bf38], edi
jne 0xf014608
mov dword [0xf09bf38], eax
jmp 0xf014611
mov ecx, dword [ebp - 0x814]
mov dword [ecx + 0x10], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret