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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x00042100]
xor rax, rsp
mov qword [rsp + 0x228], rax
mov rax, qword [0x00047050]
xor r12d, r12d
mov byte [rsp + 0x30], r9b
mov qword [rdx], r12
mov dword [r8], r12d
cmp qword [rcx + 8], rax
mov r14, r8
mov r15, rdx
mov r13, rcx
mov byte [rsp + 0x38], r12b
mov dword [rsp + 0x3c], r12d
jne 0x39a38
mov rax, qword [rcx + 0x40]
mov ecx, dword [rax]
bt rcx, 0x19
jb 0x3a1d6
lea rdx, [rsp + 0x40]
mov rcx, r13
call fcn.00056948
cmp eax, r12d
jl 0x39a60
mov rax, qword [rsp + 0x40]
mov qword [r15], rax
mov eax, dword [rsp + 0x48]
mov dword [r14], eax
xor eax, eax
jmp 0x3a1db
cmp qword [0x000460e8], r12
je 0x3a1d6
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.000568a0
cmp eax, r12d
jl 0x3a1d6
cmp qword [0x000460e8], r12
mov bpl, byte [rsp + 0x1cd]
jne 0x39a9e
mov esi, 0xc0000225
jmp 0x39ab2
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.00056c74
cmp eax, r12d
mov esi, eax
jge 0x39ab9
mov eax, esi
jmp 0x3a1db
cmp qword [0x000460e8], r12
je 0x39a97
lea rdx, [rsp + 0x34]
mov rcx, r13
call fcn.00056cf0
cmp eax, r12d
mov esi, eax
jl 0x39ab2
lea rcx, [0x00047198]
mov esi, 1
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rcx, qword [0x000472c0]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x248]
mov rdx, rdi
mov r11b, al
call fcn.0003a20c
cmp rax, r12
mov rbx, rax
je 0x39b17
lock add dword [rax + 4], esi
mov rdi, qword [rsp + 0x50]
lea rcx, [0x00047198]
mov dl, r11b
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
cmp rbx, r12
je 0x39b7e
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax + 0x240]
lock add dword [rbx + 4], 0xffffffff
mov r12, qword [rcx + 0x18]
test r12, r12
je 0x39b76
cmp dword [r12 + 0x20], 0x5452505f
je 0x39b6d
mov rax, qword [r12 + 0x10]
test rax, rax
je 0x39b65
mov r12, qword [r12 + 8]
cmp qword [rax + 0x18], r12
jne 0x39b68
xor r12d, r12d
test r12, r12
jne 0x39b45
test r12, r12
jne 0x39c2e
mov rdi, qword [rsp + 0x50]
xor r12d, r12d
cmp qword [0x000460e8], r12
je 0x39a97
lea rdx, [rsp + 0x190]
mov rcx, rdi
call fcn.000568a0
cmp eax, r12d
mov esi, eax
jl 0x39ab2
mov al, byte [rsp + 0x19a]
cmp al, 4
jne 0x39bd2
mov cl, byte [rsp + 0x34]
movzx eax, bpl
and ecx, 0x1f
lea eax, [rcx + rax - 1]
cdq
and edx, 3
lea ebp, [rdx + rax]
and ebp, 3
sub ebp, edx
add bpl, 1
jmp 0x39be2
cmp al, 7
jne 0x3a1cf
mov bpl, byte [rsp + 0x1cd]
cmp qword [0x000460e8], r12
je 0x39a97
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.00056cf0
cmp eax, r12d
mov esi, eax
jl 0x39ab2
cmp qword [0x000460e8], r12
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
je 0x39a97
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.00056c74
jmp 0x39acf
mov ebx, 0x28
lea rcx, [rsp + 0x98]
xor edx, edx
mov r8, rbx
add bpl, 0xff
call fcn.0003cb30
lea rcx, [rsp + 0xf8]
mov r8, rbx
xor edx, edx
call fcn.0003cb30
mov ebx, dword [rsp + 0x34]
mov edi, 1
mov eax, dword [rsp + 0x3c]
lea r8, [rsp + 0xc0]
mov rcx, r12
mov edx, eax
add eax, edi
mov dword [rsp + 0x3c], eax
call fcn.0002cc20
mov esi, 0xc0000225
test eax, eax
js 0x39dd0
lea r8, [rsp + 0x140]
lea rcx, [rsp + 0xc0]
xor edx, edx
call fcn.0002cd40
test eax, eax
js 0x39d67
mov rdx, qword [rsp + 0x150]
mov eax, ebx
mov ecx, edx
and eax, 0x1f
shr ecx, 0x10
cmp eax, ecx
jne 0x39d58
cmp dx, 0xffff
jne 0x39d83
lea r8, [rsp + 0x168]
lea rcx, [rsp + 0xc0]
mov edx, edi
call fcn.0002cd40
test eax, eax
js 0x39d58
cmp byte [rsp + 0x178], bpl
jne 0x39d49
lea r8, [rsp + 0x98]
lea rcx, [rsp + 0xc0]
mov edx, 2
call fcn.0002cd40
movzx edi, byte [rsp + 0x38]
mov ecx, 1
test eax, eax
lea edx, [rcx + 2]
lea r8, [rsp + 0xf8]
cmovns edi, ecx
lea rcx, [rsp + 0xc0]
call fcn.0002cd40
movzx ecx, dil
mov edi, 1
test eax, eax
cmovns ecx, edi
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x168]
mov edx, edi
call fcn.0002da10
lea rcx, [rsp + 0x140]
mov edx, edi
call fcn.0002da10
lea rcx, [rsp + 0xc0]
mov edx, edi
call fcn.0002da10
mov eax, dword [rsp + 0x38]
test al, al
jne 0x39dd4
jmp 0x39c64
mov rcx, rdx
mov eax, ebx
and edx, 7
shr rcx, 0x10
shl edx, 5
and eax, 0xffffff00
and ecx, 0x1f
mov r12d, 1
mov edi, 0xc000000d
or ecx, edx
mov edx, r12d
mov ebx, ecx
lea rcx, [rsp + 0x140]
or ebx, eax
call fcn.0002da10
lea rcx, [rsp + 0xc0]
mov edx, r12d
call fcn.0002da10
jmp 0x3a070
mov eax, dword [rsp + 0x38]
test al, al
mov edi, esi
je 0x3a06a
cmp word [rsp + 0x9a], 2
jne 0x39ff9
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
je 0x39ff9
lea r8, [rsp + 0x60]
xor r9d, r9d
mov rdx, r12
mov rcx, rbp
call fcn.0002c9a0
xor r14d, r14d
cmp eax, r14d
jge 0x39e27
mov edi, 0xc0000034
lea r12d, [r14 + 1]
jmp 0x3a07b
mov rax, qword [0x000463e0]
lea r8, [0x000463e0]
add rax, 0xffffffffffffffc8
lea rcx, [rax + 0x38]
cmp r8, rcx
je 0x39e60
mov rdx, qword [rsp + 0x60]
cmp qword [rax + 0x1a8], rdx
je 0x39e67
mov rax, qword [rcx]
sub rax, 0x38
lea rcx, [rax + 0x38]
cmp r8, rcx
jne 0x39e47
mov ebp, esi
jmp 0x3a03d
lea rdx, [rsp + 0x40]
mov rcx, r13
mov qword [r15], rax
mov ebp, r14d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r14d
mov byte [rsp + 0x4c], r14b
call fcn.00056b0c
mov edx, 0x38
lea ecx, [rdx - 0x37]
mov r8d, 0x49706341
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp rax, r14
mov rdi, rax
je 0x3a03d
lea rcx, [0x00047198]
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rcx, qword [0x000472c0]
mov rdx, r13
mov rcx, qword [rcx + 0x248]
mov r11b, al
call fcn.0003a20c
cmp rax, r14
mov rbp, rax
je 0x39ee4
mov eax, 1
lock add dword [rbp + 4], eax
mov ebx, dword [rsp + 0x34]
lea rcx, [0x00047198]
mov dl, r11b
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
cmp rbp, r14
je 0x39f13
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x240]
mov qword [rdi + 0x10], rcx
lock add dword [rbp + 4], 0xffffffff
mov ebx, dword [rsp + 0x34]
jmp 0x39f17
mov qword [rdi + 0x10], r14
cmp qword [0x000460e8], r14
mov qword [rdi + 0x30], r13
mov dword [rdi + 0x20], ebx
mov qword [rdi + 0x18], r12
jne 0x39f2f
mov ebp, esi
jmp 0x39f76
lea rdx, [rsp + 0x190]
mov rcx, r13
call fcn.000568a0
cmp eax, r14d
mov ebp, eax
jl 0x39f76
movzx ecx, word [rsp + 0x190]
movzx edx, word [rsp + 0x192]
shl edx, 0x10
or edx, ecx
mov dword [rdi + 0x24], edx
movzx edx, word [rsp + 0x1be]
movzx ecx, word [rsp + 0x1bc]
shl edx, 0x10
or edx, ecx
mov dword [rdi + 0x28], edx
mov rcx, qword [r15]
add rcx, 0x48
mov rax, qword [rcx]
cmp rcx, rax
je 0x39fe5
mov rdx, qword [rax + 0x30]
cmp rdx, r14
je 0x39f94
cmp rdx, qword [rdi + 0x30]
je 0x39fa8
mov rdx, qword [rax + 0x10]
cmp rdx, r14
je 0x39fa3
cmp rdx, qword [rdi + 0x10]
je 0x39fa8
mov rax, qword [rax]
jmp 0x39f80
mov rcx, qword [rdi + 0x30]
cmp rcx, r14
je 0x39fb5
mov qword [rax + 0x30], rcx
mov rcx, qword [rdi + 0x10]
cmp rcx, r14
je 0x39fc2
mov qword [rax + 0x10], rcx
mov ecx, dword [rdi + 0x24]
cmp ecx, r14d
je 0x39fcd
mov dword [rax + 0x24], ecx
mov ecx, dword [rdi + 0x28]
cmp ecx, r14d
je 0x39fd8
mov dword [rax + 0x28], ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x3a03d
mov rax, qword [rcx + 8]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [rcx + 8], rdi
jmp 0x3a03d
mov eax, 1
cmp word [rsp + 0xfa], ax
jne 0x3a038
mov eax, dword [rsp + 0x108]
xor ebp, ebp
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], rbp
mov dword [r14], eax
and qword [r15], 0
mov eax, dword [r14]
mov rcx, r13
mov byte [rsp + 0x4c], 2
mov dword [rsp + 0x48], eax
call fcn.00056b0c
jmp 0x3a03d
mov ebp, 0xc000007b
mov r13d, 1
lea rcx, [rsp + 0x98]
mov edx, r13d
call fcn.0002da10
lea rcx, [rsp + 0xf8]
mov edx, r13d
call fcn.0002da10
mov eax, ebp
jmp 0x3a1db
mov r12d, 1
mov rbp, qword [rsp + 0xb8]
xor r14d, r14d
cmp byte [rsp + 0x30], r14b
je 0x3a0e1
lea r8, str.IRQARB
lea rcx, [rsp + 0x200]
mov edx, 0x14
call fcn.0003b248
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, ebx
lea r8, [rsp + 0x120]
and ecx, 0x1f
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
cmp eax, r14d
jge 0x3a0e8
mov eax, edi
jmp 0x3a1db
shr ebx, 5
lea r8, [rsp + 0xe8]
xor edx, edx
and ebx, 7
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
cmp eax, r14d
jl 0x3a0e1
cmp edi, 0xc000000d
lea rax, [rsp + 0x200]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x78], rax
je 0x3a1af
cmp edi, 0xc0000034
je 0x3a147
cmp edi, esi
jne 0x3a0e1
mov ecx, 0xc0050006
jmp 0x3a1b4
lea rcx, [rsp + 0x130]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x88]
mov r8b, r12b
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov r11, qword [rsp + 0x90]
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x68]
mov ecx, 0xc0050008
mov qword [rsp + 0x80], r11
mov dword [rsp + 0x20], r14d
call fcn.0001ce04
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x3a0e1
mov ecx, 0xc0050009
xor r9d, r9d
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x20], r14d
lea r8d, [r9 + 3]
call fcn.0001ce04
jmp 0x3a0e1
mov eax, 0xc0000001
jmp 0x3a1db
mov eax, 0xc0000225
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.0003aa80
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret