Function at 0x4f95d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, 0x20019
push esi
xor ebx, ebx
push 0x5b6e78
push ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.004c1053
cmp eax, ebx
jl 0x4f987c
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x42], 0x70
mov word [ebp - 0x44], 0x6e
mov dword [ebp - 0x40], 0x4f96e4
call fcn.004c1053
push dword [ebp - 0x1c]
mov esi, eax
call sym.ntoskrnl.exe_ZwClose
cmp esi, ebx
jl 0x51406a
push 0x226
lea eax, [ebp - 0x58]
push eax
call fcn.004bf792
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x4f9842
mov dword [ebp - 0x4c], 0x4f9754
mov dword [ebp - 0x48], 0x4f976c
mov dword [ebp - 0xc], ebx
push edi
mov eax, dword [ebp - 0xc]
lea edi, [ebp + eax - 0x34]
push edi
push dword [ebp + eax - 0x4c]
push dword [ebp + 8]
call fcn.004c0f9b
test eax, eax
jl 0x4f982b
mov eax, dword [edi]
cmp dword [eax + 4], 7
jne 0x4f97a9
cmp dword [eax + 0xc], ebx
je 0x4f97a9
mov esi, dword [eax + 8]
add esi, eax
mov dword [ebp - 0x28], esi
mov ax, word [eax + 0xc]
mov word [ebp - 0x2c], ax
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push eax
push eax
call fcn.004deb21
mov ecx, dword [edi]
mov edi, dword [ecx + 0xc]
add edi, esi
mov eax, esi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 0x14], eax
je 0x4f982b
cmp word [eax], bx
je 0x4f9788
mov eax, dword [ebp - 0x14]
inc eax
inc eax
cmp eax, edi
jmp 0x4f96c8
sub eax, esi
mov word [ebp - 0x2c], ax
add eax, 2
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x28], esi
push dword [ebp - 0x58]
mov dword [ebp - 0x10], ebx
push ebx
push ebx
jmp 0x4f97b5
push ebx
push eax
call sym.ntoskrnl.exe_ExFreePoolWithTag
jmp 0x514252
push dword [ebp - 8]
call sym.ntoskrnl.exe_ZwEnumerateKey
cmp eax, 0x8000001a
mov dword [ebp - 4], eax
je 0x4f9818
cmp dword [ebp - 4], 0x80000005
je 0x514071
cmp dword [ebp - 4], ebx
jl 0x4f9841
mov eax, dword [ebp - 0x58]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x38], ecx
mov ax, word [eax + 0xc]
mov word [ebp - 0x3c], ax
mov word [ebp - 0x3a], ax
push 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sym.ntoskrnl.exe_RtlEqualUnicodeString
test al, al
jne 0x51408e
inc dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push ebx
push dword [ebp - 0x10]
jmp 0x4f97b5
mov esi, dword [ebp - 0x14]
add esi, 2
cmp esi, edi
je 0x4f982b
cmp word [esi], bx
jne 0x4f96da
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 8
jb 0x4f966b
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 4], ebx
pop edi
cmp dword [ebp - 0x58], ebx
je 0x4f9850
lea eax, [ebp - 0x58]
push eax
call fcn.004bf7c7
cmp dword [ebp - 8], ebx
je 0x4f985d
push dword [ebp - 8]
call sym.ntoskrnl.exe_ZwClose
cmp dword [ebp - 0x34], ebx
je 0x4f986b
push ebx
push dword [ebp - 0x34]
call sym.ntoskrnl.exe_ExFreePoolWithTag
cmp dword [ebp - 0x30], ebx
je 0x4f9879
push ebx
push dword [ebp - 0x30]
call sym.ntoskrnl.exe_ExFreePoolWithTag
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x1c
mov eax, esi
jmp 0x4f987c
push ebx
push dword [ebp - 0x20]
lea eax, [ebp - 0x58]
push eax
call fcn.004bf720
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x4f9841
jmp 0x4f9808
push 0x20019
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004c1053
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x4f9841
push 0x6e657050
push 0xa8
push ebx
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov esi, eax
cmp esi, ebx
je 0x514259
mov edx, dword [ebp + 0x14]
push 0x2a
pop ecx
push 0x20
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
pop ecx
push 0x30
pop edi
push 7
mov dword [esi + 0x28], edx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x44], edx
pop edx
push ebx
mov dword [esi + 0xc], eax
push ebx
mov dword [esi + 4], ecx
xor eax, eax
inc eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x58], edi
mov edi, dword [ebp + 0x20]
mov dword [esi + 0x74], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov dword [esi + 8], 0x51426e
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x51427e
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], 0x514282
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x514296
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], 0x51429a
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], 0x5142b6
mov dword [esi + 0x50], ebx
mov dword [esi + 0x5c], 0x5142ba
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], 0x5142d6
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x78], 0x5142da
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 0x5142ea
mov dword [esi + 0x88], ebx
push dword [ebp - 0x18]
push 0xc0000000
call sym.ntoskrnl.exe_RtlQueryRegistryValues
push ebx
push esi
mov dword [ebp - 4], eax
call sym.ntoskrnl.exe_ExFreePoolWithTag
push dword [ebp - 0x18]
call sym.ntoskrnl.exe_ZwClose
cmp dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x10]
jl 0x514220
cmp dword [ecx + 4], ebx
je 0x514220
cmp word [ecx], bx
je 0x514220
mov esi, dword [ebp + 0x14]
mov ax, word [esi]
cmp ax, bx
je 0x5141bc
cmp ax, 0x4c
jb 0x514223
mov eax, dword [ebp + 0x18]
mov ax, word [eax]
cmp ax, bx
je 0x5141cd
cmp ax, 0x4c
jb 0x514223
cmp word [edi], 2
ja 0x5141de
cmp dword [edi + 4], ebx
je 0x5141de
push edi
call sym.ntoskrnl.exe_RtlFreeAnsiString
mov eax, dword [ebp + 0x1c]
cmp word [eax], 2
ja 0x5141f2
cmp dword [eax + 4], ebx
je 0x5141f2
push eax
call sym.ntoskrnl.exe_RtlFreeAnsiString
cmp word [esi], bx
jne 0x514202
cmp dword [esi + 4], ebx
je 0x514202
push esi
call sym.ntoskrnl.exe_RtlFreeAnsiString
mov eax, dword [ebp + 0x18]
cmp word [eax], bx
jne 0x514215
cmp dword [eax + 4], ebx
je 0x514215
push eax
call sym.ntoskrnl.exe_RtlFreeAnsiString
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x4f9841
mov esi, dword [ebp + 0x14]
push ecx
call sym.ntoskrnl.exe_RtlFreeAnsiString
push esi
call sym.ntoskrnl.exe_RtlFreeAnsiString
push dword [ebp + 0x18]
call sym.ntoskrnl.exe_RtlFreeAnsiString
push dword [ebp + 0x1c]
call sym.ntoskrnl.exe_RtlFreeAnsiString
push edi
call sym.ntoskrnl.exe_RtlFreeAnsiString
mov edi, dword [ebp - 0x24]
jmp 0x4f9805
mov dword [edi], ebx
jmp 0x4f982b
push dword [ebp - 0x18]
call sym.ntoskrnl.exe_ZwClose
mov dword [ebp - 4], 0xc000009a
jmp 0x4f9841