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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x2c7c4
mov eax, dword [eax + 0x14]
test eax, eax
je 0x2c7c4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00016894
test al, al
je 0x2c7c4
push dword [ebp - 0xc]
call dword [0x59c80]
cmp al, 0xff
mov byte [ebp + 0xb], al
je 0x2c7c4
test al, 1
jne 0x2c7c4
cmp word [ebp - 8], 0
je 0x2c7c4
lea eax, [ebp - 0x28]
push eax
push dword [0x59cf0]
call fcn.00014a8b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x3af48
and word [ebx + 0x1c], 0
call fcn.0001cba3
mov esi, eax
test esi, esi
je 0x3af27
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x3af52
and word [ebx + 0x1e], 0
and dword [ebx + 0x18], 0
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebx + 8], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov ax, word [ebp - 8]
mov ecx, 0x50180
mov word [esi + 0x14], ax
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov byte [ebp + 0x17], al
lea eax, [ebp + 0xf]
push eax
push dword [ebp - 0x18]
call fcn.00016bbe
mov edi, eax
test edi, edi
je 0x3b041
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x3b02c
lea ecx, [eax + 4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push 1
push dword [ebp + 0x10]
mov byte [ebp - 1], al
push esi
push edi
call fcn.0001c3e7
test eax, eax
mov dl, byte [ebp - 1]
mov dword [ebp + 0x10], eax
mov byte [esi + 0x15d], 1
mov byte [esi + 0x15e], 0
jne 0x3b021
mov ebx, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
or dword [esi + 0x78], 8
mov ecx, 0x50180
call ebx
lea ecx, [esi + 0xdc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0xb]
push ecx
lea eax, [esi + 0xfc]
push eax
push dword [esi + 0x10]
push dword [ebp - 0xc]
call dword [0x59c70]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x3af7b
cmp byte [ebp + 0xb], 0
je 0x2c7b4
lea ecx, [esi + 4]
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov edx, dword [ebp - 0x1c]
mov byte [ebp + 0x10], al
mov eax, dword [edi + 0x40]
mov dword [edi + 8], esi
mov dword [esi + 0x158], eax
inc word [edi + 0x12]
mov dword [esi + 0xc8], edi
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [eax], ecx
lea ecx, [edx + 0x80]
mov eax, dword [ecx]
mov dword [eax], edi
mov eax, dword [ecx]
add edx, 0x7c
mov dword [edi + 4], eax
mov dword [ecx], edi
mov ecx, dword [edi + 0x3c]
mov dword [edi], edx
mov dl, byte [ebp + 0x10]
call ebx
mov dl, byte [ebp + 0xf]
mov ecx, dword [ebp - 0x18]
call ebx
cmp dword [esi + 0x10], 0
jne 0x1c924
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.0001c55a
mov eax, dword [ebp - 0x10]
add eax, 0xffec
cmp dword [0x54278], 0
mov dword [ebp - 0x10], eax
je 0x3af9a
mov byte [esi + 0xe7], 2
mov eax, dword [ebp - 0x10]
movzx cx, byte [esi + 0xe4]
push esi
sub eax, ecx
mov word [esi + 0x20], ax
call fcn.0001c3b7
mov ax, word [esi + 0x20]
push esi
mov word [esi + 0x22], ax
call fcn.0001c693
mov dword [esi + 8], 1
mov byte [esi + 0x1c], 2
inc dword [0x50248]
call sub.ntoskrnl.exe_PsGetCurrentProcessId
mov edi, dword [ebp - 0x14]
mov dl, byte [ebp + 0x17]
lea ecx, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0xb4], edi
call ebx
push esi
call fcn.0001c2cf
push dword [ebp - 0x24]
push 0
push esi
call fcn.0001ca42
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
lea ecx, [esi + 4]
mov dword [ebp + 0xc], eax
call ebx
cmp dword [ebp + 0xc], 0
mov byte [ebp + 0x10], al
je 0x3afbb
test byte [esi + 0x1e], 1
jne 0x1ca28
cmp byte [esi + 0x1c], 2
jne 0x1ca28
mov ax, word [edi + 0x1e]
test ax, ax
ja 0x3b010
push 0
lea eax, [esi + 0xc]
push eax
push 3
push 1
call fcn.00014c90
push dword [esi + 0xfc]
call dword [0x59c74]
test al, al
je 0x1ca17
or byte [edi + 0x1c], 2
xor ecx, ecx
mov eax, 0x504a0
inc ecx
lock xadd dword [eax], ecx
push dword [ebp + 0x10]
push esi
call fcn.0001d151
lea ecx, [esi + 4]
call ebx
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push esi
call fcn.00013d9a
mov eax, 0x103
pop edi
pop esi
pop ebx
leave
ret 0x10
and byte [esi + 0x7a], 0xfd
mov byte [esi + 0x15d], 0
jmp 0x1c8be
mov eax, 0xc0000207
jmp 0x1ca36
test byte [ebx + 0x1c], 2
je 0x3af3e
mov eax, 0x504a0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
call fcn.0001042f
mov esi, 0xc000009a
jmp 0x3affd
mov eax, 0xc000009a
jmp 0x1ca36
mov eax, dword [eax]
test eax, eax
je 0x1c7e4
xor edx, edx
push 0x64
pop ecx
div ecx
mov ecx, 0xffff
inc eax
cmp eax, ecx
jbe 0x3af71
mov eax, ecx
jmp 0x3af72
inc eax
mov word [ebx + 0x1e], ax
jmp 0x1c7e9
mov dl, byte [ebp + 0xf]
mov ecx, dword [ebp - 0x18]
call ebx
mov dl, byte [ebp + 0x17]
mov ecx, dword [edi + 0x3c]
call ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0x10], 0xc000023d
jmp 0x3b056
test byte [ebp + 0xb], 0x10
je 0x1c957
cmp ax, 0x218
movzx eax, ax
jb 0x1c957
mov eax, 0x218
jmp 0x1c957
push dword [ebp + 0x10]
and dword [esi + 0xb4], 0
push 0x40
push esi
call fcn.0001b6ec
lea ecx, [esi + 4]
call ebx
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push esi
call fcn.00013d9a
test byte [edi + 0x1c], 2
je 0x3aff5
mov eax, 0x504a0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
call fcn.0001042f
mov ebx, dword [ebp - 0x14]
mov esi, 0xc000020a
push ebx
push dword [0x59cf0]
call fcn.000149c4
mov eax, esi
jmp 0x1ca36
movzx eax, ax
push eax
push 5
push esi
call fcn.000169ec
jmp 0x1c9e8
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x3b033
mov dword [ebp + 0x10], 0xc0000239
mov dl, byte [ebp + 0xf]
mov ecx, dword [edi + 0x3c]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x3b048
mov dword [ebp + 0x10], 0xc000023a
mov dl, byte [ebp + 0x17]
mov ecx, 0x50180
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [ebx + 0x1c], 2
je 0x3b06d
mov eax, 0x504a0
or ecx, 0xffffffff
lock xadd dword [eax], ecx
call fcn.0001042f
push ebx
push dword [0x59cf0]
call fcn.000149c4
push esi
call fcn.0001ab51
mov eax, dword [ebp + 0x10]
jmp 0x1ca36