Function at 0x1c223
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 0x2c798
mov eax, dword [eax + 0x14]
test eax, eax
je 0x2c798
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00016894
test al, al
je 0x2c798
push dword [ebp - 0xc]
call dword [0x59d00]
cmp al, 0xff
mov byte [ebp + 0xb], al
je 0x2c798
test al, 1
jne 0x2c798
cmp word [ebp - 8], 0
je 0x2c798
lea eax, [ebp - 0x28]
push eax
push dword [0x59d70]
call fcn.00014a8b
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x3afc8
and word [ebx + 0x1c], 0
call fcn.0001cac6
mov esi, eax
test esi, esi
je 0x3afa7
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x3afd2
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, 0x50200
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 0x3b0c1
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x3b0ac
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.0001bc29
test eax, eax
mov dl, byte [ebp - 1]
mov dword [ebp + 0x10], eax
mov byte [esi + 0x15d], 1
mov byte [esi + 0x15e], 0
jne 0x3b0a1
mov ebx, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
or dword [esi + 0x78], 8
mov ecx, 0x50200
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 [0x59cf0]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x3affb
cmp byte [ebp + 0xb], 0
je 0x2c788
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 0x1c404
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.0001bd9c
mov eax, dword [ebp - 0x10]
add eax, 0xffec
cmp dword [0x542f8], 0
mov dword [ebp - 0x10], eax
je 0x3b01a
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.0001bbf9
mov ax, word [esi + 0x20]
push esi
mov word [esi + 0x22], ax
call fcn.0001bed5
mov dword [esi + 8], 1
mov byte [esi + 0x1c], 2
inc dword [0x502c8]
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.0001bb11
push dword [ebp - 0x24]
push 0
push esi
call fcn.0001c965
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 0x3b03b
test byte [esi + 0x1e], 1
jne 0x1c508
cmp byte [esi + 0x1c], 2
jne 0x1c508
mov ax, word [edi + 0x1e]
test ax, ax
ja 0x3b090
push 0
lea eax, [esi + 0xc]
push eax
push 3
push 1
call fcn.00014c90
push dword [esi + 0xfc]
call dword [0x59cf4]
test al, al
je 0x1c4f7
or byte [edi + 0x1c], 2
xor ecx, ecx
mov eax, 0x50520
inc ecx
lock xadd dword [eax], ecx
push dword [ebp + 0x10]
push esi
call fcn.0001c6e9
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 0x1c39e
mov eax, 0xc0000207
jmp 0x1c516
test byte [ebx + 0x1c], 2
je 0x3afbe
mov eax, 0x50520
or ecx, 0xffffffff
lock xadd dword [eax], ecx
call fcn.0001042f
mov esi, 0xc000009a
jmp 0x3b07d
mov eax, 0xc000009a
jmp 0x1c516
mov eax, dword [eax]
test eax, eax
je 0x1c2c4
xor edx, edx
push 0x64
pop ecx
div ecx
mov ecx, 0xffff
inc eax
cmp eax, ecx
jbe 0x3aff1
mov eax, ecx
jmp 0x3aff2
inc eax
mov word [ebx + 0x1e], ax
jmp 0x1c2c9
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 0x3b0d6
test byte [ebp + 0xb], 0x10
je 0x1c437
cmp ax, 0x218
movzx eax, ax
jb 0x1c437
mov eax, 0x218
jmp 0x1c437
push dword [ebp + 0x10]
and dword [esi + 0xb4], 0
push 0x40
push esi
call fcn.0001b38b
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 0x3b075
mov eax, 0x50520
or ecx, 0xffffffff
lock xadd dword [eax], ecx
call fcn.0001042f
mov ebx, dword [ebp - 0x14]
mov esi, 0xc000020a
push ebx
push dword [0x59d70]
call fcn.000149c4
mov eax, esi
jmp 0x1c516
movzx eax, ax
push eax
push 5
push esi
call fcn.000169ec
jmp 0x1c4c8
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x3b0b3
mov dword [ebp + 0x10], 0xc0000239
mov dl, byte [ebp + 0xf]
mov ecx, dword [edi + 0x3c]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x3b0c8
mov dword [ebp + 0x10], 0xc000023a
mov dl, byte [ebp + 0x17]
mov ecx, 0x50200
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [ebx + 0x1c], 2
je 0x3b0ed
mov eax, 0x50520
or ecx, 0xffffffff
lock xadd dword [eax], ecx
call fcn.0001042f
push ebx
push dword [0x59d70]
call fcn.000149c4
push esi
call fcn.0001a7f0
mov eax, dword [ebp + 0x10]
jmp 0x1c516