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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
and eax, 4
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
jne 0x528c29
push esi
push edi
lea esi, [ebx + 0x18]
push esi
mov dword [ebp - 0x14], esi
call fcn.004a03f1
mov eax, dword [ebx + 0x90]
xor edi, edi
cmp eax, edi
jne 0x528c42
mov dword [ebp - 8], edi
cmp dword [ebx + 0x94], edi
jne 0x528c58
mov dword [ebp - 0x10], edi
push 0x64546553
push 0x38
push edi
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov esi, eax
cmp esi, edi
je 0x528c94
mov eax, dword [ebx + 0x58]
add eax, dword [ebp + 0x2c]
mov ebx, dword [ebx + 0x5c]
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 4], eax
add eax, 0xa0
push eax
push ebx
push eax
push edi
push dword [ebp + 0xc]
push edi
push dword [sym.ntoskrnl.exe_SeTokenObjectType]
push dword [ebp + 0xc]
call sym.ntoskrnl.exe_ObCreateObject
mov ebx, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jl 0x528cbc
lea eax, [ebx + 0x30]
push esi
mov dword [eax], esi
call sym.ntoskrnl.exe_ExInitializeResourceLite
lea eax, [ebx + 0x40]
push eax
call fcn.0040c42a
lea eax, [ebx + 0x10]
push eax
call fcn.0040c42a
mov byte [ebx + 0x8c], 0
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebx + 0x18], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov ecx, dword [esi + 0x64]
mov dword [ebx + 0x64], ecx
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [esi + 0x48]
mov dword [ebx + 0x48], ecx
mov ecx, dword [esi + 0x38]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x50], eax
mov ecx, dword [esi + 0x54]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x58], ecx
mov ecx, dword [esi + 0x88]
and ecx, 0xffffffdf
test byte [ebp + 0x10], 2
mov dword [ebx + 0x88], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x90], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x94], ecx
jne 0x528cea
cmp dword [ebp - 0x1c], eax
jne 0x528cf6
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x80]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x84]
lea edi, [ebx + 0xa0]
push edi
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x74], edi
push dword [esi + 0x74]
push dword [esi + 0x54]
call fcn.00507e88
mov eax, dword [esi + 0x54]
lea eax, [eax + eax*2]
shl eax, 2
sub dword [ebp - 4], eax
add edi, eax
mov eax, dword [esi + 0x50]
cmp eax, dword [ebp + 0x24]
ja 0x4dbc11
mov eax, dword [ebp + 0x24]
mov ecx, dword [esi + 0x4c]
add ecx, eax
lea eax, [edi + ecx*8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
mov dword [ebx + 0x68], edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push dword [esi + 0x68]
push dword [esi + 0x4c]
call fcn.00495a61
mov dword [ebp + 0x2c], eax
mov eax, dword [esi + 0x4c]
lea edi, [edi + eax*8]
mov eax, dword [ebp + 0x24]
test eax, eax
mov dword [ebx + 0x6c], edi
ja 0x528d02
mov eax, dword [esi + 0x70]
movzx edi, byte [eax + 1]
mov eax, dword [esi + 0x7c]
test eax, eax
lea edi, [edi*4 + 8]
je 0x4dbc6b
movzx eax, word [eax + 2]
add edi, eax
push 0x64546553
push edi
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0x24], eax
mov dword [ebx + 0x78], eax
je 0x528d64
cmp dword [esi + 0x50], ecx
jne 0x528d94
cmp dword [ebx + 0x50], ecx
ja 0x528dd9
mov esi, dword [esi + 0x78]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x7c]
test ecx, ecx
je 0x4dbd22
sub ecx, dword [edx + 0x78]
add ecx, eax
mov dword [ebx + 0x7c], ecx
mov esi, dword [edx + 0x70]
mov ecx, dword [edx + 0x30]
sub esi, dword [edx + 0x78]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x4dbce8
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
jne 0x528de5
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
push dword [ebp + 0x1c]
add esi, eax
push dword [ebp + 0x18]
mov dword [ebx + 0x70], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.004db8c9
lea eax, [ebx + 0x38]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x528df6
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x2c
and dword [ebx + 0x7c], 0
jmp 0x4dbcc1
test word [ebx + 0x88], 0x112
je 0x4dba74
mov eax, 0xc000000d
jmp 0x4dbd1d
push eax
lea eax, [ebp - 8]
push eax
call fcn.00562193
cmp eax, edi
jge 0x4dba95
mov edi, eax
jmp 0x528c7a
push 0x20206553
push 0xc
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x528c82
push dword [ebp - 8]
call fcn.0056223c
mov edi, 0xc000009a
push esi
call fcn.004a02d3
jmp 0x528ce3
mov esi, dword [ebx + 0x94]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x4dbaa4
cmp dword [ebp - 0x10], edi
je 0x528ca2
push edi
push dword [ebp - 0x10]
call sym.ntoskrnl.exe_ExFreePoolWithTag
push dword [ebp - 8]
call fcn.0056223c
push dword [ebp - 0x14]
call fcn.004a02d3
mov eax, 0xc000009a
jmp 0x4dbd1b
push dword [ebp - 0x14]
call fcn.004a02d3
push dword [ebp - 8]
call fcn.0056223c
xor ebx, ebx
push ebx
push esi
call sym.ntoskrnl.exe_ExFreePoolWithTag
cmp dword [ebp - 0x10], ebx
je 0x528ce3
push ebx
push dword [ebp - 0x10]
call sym.ntoskrnl.exe_ExFreePoolWithTag
mov eax, edi
jmp 0x4dbd1b
or dword [ebx + 0x88], 0x40
jmp 0x4dbbb6
or byte [ebx + 0x89], 1
jmp 0x4dbbbf
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x528d26
mov ecx, dword [ebp + 0x24]
push dword [ecx]
push 0
push eax
push dword [esi + 0x6c]
call fcn.004db978
test al, al
je 0x528d56
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push dword [ebp + 0x24]
push 1
call fcn.00495a61
mov ecx, dword [ebx + 0x6c]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x50]
add edi, 8
mov dword [ecx + eax*8 + 4], 7
inc dword [ebx + 0x50]
add dword [ebp + 0x24], 8
dec dword [ebp + 0xc]
jne 0x528d0b
jmp 0x4dbc50
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x528d8d
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x528d8d
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
mov esi, 0xc000009a
jmp 0x528dcb
cmp dword [ebx + 0x50], ecx
jne 0x4dbc94
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x528dc6
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x528dc6
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
mov esi, 0xc000000d
mov ecx, ebx
call sym.ntoskrnl.exe_ObfDereferenceObject
mov eax, esi
jmp 0x4dbd1b
or dword [ebx + 0x88], 0x10
jmp 0x4dbc9a
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
jmp 0x4dbce8
push 1
push eax
call fcn.00413ff9
jmp 0x4dbd13