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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 8]
test eax, eax
je 0x1794b
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x68]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x44]
imul eax, dword [rcx + 8]
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x175a2
mov dword [rsp + 0x20], 0xc000009a
jmp 0x179d5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
cmp qword [rsp + 0x90], rax
jbe 0x175c2
mov dword [rsp + 0x20], 0xc0000032
jmp 0x179d5
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, qword [rsp + 0x28]
cmp rcx, qword [rax + 0x30]
jbe 0x175fa
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
sub rax, rcx
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jbe 0x17946
mov ecx, dword [rsp + 0x40]
xor edx, edx
mov rax, qword [rsp + 0x90]
div rcx
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], 0
mov ecx, dword [rsp + 0x40]
xor edx, edx
mov rax, qword [rsp + 0x90]
div rcx
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x4c], 0
je 0x1770f
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00017a20
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xffffffff
jne 0x17674
mov dword [rsp + 0x20], 0xc0000032
jmp 0x179d5
mov ecx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x40]
sub eax, ecx
cmp eax, dword [rsp + 0x98]
jae 0x17697
mov ecx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x40]
sub eax, ecx
mov dword [rsp + 0x5c], eax
jmp 0x176a2
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x44]
mov edx, eax
mov r9, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
call fcn.00016380
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x176dc
jmp 0x179d5
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x4c]
mov rsi, qword [rsp + 0x30]
add rsi, rax
mov rdi, qword [rsp + 0xa0]
rep movsb byte [rdi], byte [rsi]
mov edx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x38]
add eax, edx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov edi, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov ecx, dword [rsp + 0x40]
xor edx, edx
div rcx
cmp rdi, rax
jae 0x1786d
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
add r8d, eax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00017a20
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xffffffff
jne 0x1777d
mov dword [rsp + 0x20], 0xc0000032
jmp 0x1786d
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
mov edi, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
add rax, rcx
mov ecx, dword [rsp + 0x40]
xor edx, edx
div rcx
cmp rdi, rax
jae 0x1780d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00017a20
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x3c], 0xffffffff
jne 0x177e3
mov dword [rsp + 0x20], 0xc0000032
jmp 0x1780d
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x3c]
add eax, ecx
cmp dword [rsp + 0x54], eax
je 0x177f5
jmp 0x1780d
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
jmp 0x17793
cmp dword [rsp + 0x20], 0
je 0x17816
jmp 0x1786d
mov eax, dword [rsp + 0x38]
mov r9, qword [rsp + 0xa0]
add r9, rax
mov r8d, dword [rsp + 0x58]
imul r8d, dword [rsp + 0x44]
mov eax, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x44]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.00016380
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x17855
jmp 0x1786d
mov ecx, dword [rsp + 0x40]
imul ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x38]
add eax, ecx
mov dword [rsp + 0x38], eax
jmp 0x1770f
cmp dword [rsp + 0x20], 0
je 0x17879
jmp 0x179d5
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x38], eax
jae 0x17946
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00017a20
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0xffffffff
jne 0x178b9
mov dword [rsp + 0x20], 0xc0000032
jmp 0x179d5
mov ecx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x98]
sub eax, ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
jbe 0x178e1
mov dword [rsp + 0x20], 0xc0000032
jmp 0x179d5
mov eax, dword [rsp + 0x3c]
imul eax, dword [rsp + 0x44]
mov edx, eax
mov r9, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
call fcn.00016380
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x17913
jmp 0x179d5
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x38]
mov rdi, qword [rsp + 0xa0]
add rdi, rax
mov rsi, qword [rsp + 0x30]
rep movsb byte [rdi], byte [rsi]
mov edx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x38]
add eax, edx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
jmp 0x179cb
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
cmp qword [rsp + 0x90], rax
jbe 0x17967
mov dword [rsp + 0x20], 0xc0000032
jmp 0x179d5
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
cmp rcx, rax
jbe 0x1799e
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x90]
mov eax, dword [rax + 0x10]
sub eax, ecx
mov dword [rsp + 0x98], eax
mov ecx, dword [rsp + 0x98]
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rsi, qword [rsp + 0x28]
add rsi, rax
mov rdi, qword [rsp + 0xa0]
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x38], eax
xor eax, eax
test eax, eax
jne 0x17540
cmp qword [rsp + 0xa8], 0
je 0x179ee
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rsp + 0x38]
mov dword [rcx], eax
cmp qword [rsp + 0x30], 0
je 0x17a03
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x68
pop rdi
pop rsi
ret