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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
xor r15d, r15d
mov eax, r8d
lea rcx, [0x18001e29c]
and eax, 0x10
mov rsi, rdx
mov r14, r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov r13, r15
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x70], rcx
je 0x18001d2ce
mov rdi, qword [rdx]
lea rax, [0x180038150]
mov qword [rsp + 0x70], rax
jmp 0x18001d2d2
mov rdi, qword [rdx + 8]
cmp rdi, r15
jne 0x18001d2e1
mov ebx, 2
jmp 0x18001d895
movsxd rax, dword [rdi + 0x3c]
mov ecx, 0x14c
xor edx, edx
cmp word [rax + rdi + 4], cx
mov ecx, dword [rax + rdi + 0x50]
lea r8d, [rdx + 0x28]
lea r12d, [rcx + 0xfff]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x50], r15
and r12d, 0xfffff000
mov qword [rsp + 0x58], r15
call sub.ntdll.dll_memset
mov eax, dword [rsi + 0x14]
xor r11d, r11d
mov qword [rsp + 0x30], r15
add eax, dword [rsi + 0x10]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x90]
lea eax, [rax + r12 + 0xc58]
lea rcx, [rsp + 0x50]
mov edx, 0xf001f
mov dword [rsp + 0x60], eax
lea eax, [r11 + 0x40]
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x64], r11d
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], r15
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xb0], r15
mov qword [rsp + 0xb8], r15
call qword [sym.imp.ntdll.dll_NtCreateSection]
cmp eax, r15d
jl 0x18001d3e2
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
or rdx, 0xffffffffffffffff
call fcn.18001e5a0
mov ebp, eax
cmp eax, r15d
jne 0x18001d3ec
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor edx, edx
call sub.ntdll.dll_memset
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x50]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x78], r13
jmp 0x18001d3ec
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebp, eax
mov ebx, ebp
cmp ebp, r15d
jne 0x18001d86b
mov r15d, dword [0x180039d14]
mov rdx, qword [rsp + 0x110]
mov eax, r12d
mov rdx, qword [rdx]
xor r15, 0x73686028
lea r8, [rsp + 0x40]
add r15, rax
mov rcx, r13
mov qword [rsp + 0x88], rax
add r15, r14
call fcn.18001e5a0
mov ebx, eax
test eax, eax
jne 0x18001d868
movsxd rbx, dword [rdi + 0x3c]
mov r13, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
add rbx, rdi
mov eax, 0x14c
mov rdx, rdi
cmp word [rbx + 4], ax
mov eax, dword [rbx + 0x54]
movzx ebp, word [rbx + 0x14]
movzx r12d, word [rbx + 6]
mov r14d, dword [rbx + 0x3c]
mov r8d, eax
mov qword [rsp + 0x80], r13
call sub.ntdll.dll_memcpy
test r12d, r12d
je 0x18001d4c6
mov rsi, qword [rsp + 0x48]
lea r13d, [r14 - 1]
lea rbp, [rbx + rbp + 0x2c]
not r13d
mov eax, dword [rbp - 4]
lea ecx, [rax + r14 - 1]
and ecx, r13d
je 0x18001d4ac
mov edx, dword [rbp]
mov r8d, ecx
mov ecx, dword [rbp - 8]
add rcx, rsi
add rdx, rdi
call sub.ntdll.dll_memcpy
add rbp, 0x28
sub r12, 1
jne 0x18001d48b
mov rsi, qword [rsp + 0x118]
mov r13, qword [rsp + 0x80]
mov r14, qword [rsp + 0x48]
test r13, r13
mov edx, 0x14c
cmove r13, r14
cmp word [rbx + 4], dx
lea rax, [rbx + 0xa0]
lea rcx, [rbx + 0xb0]
mov r12d, 8
cmove rcx, rax
cmp dword [rcx], 0
je 0x18001d598
mov r10d, dword [rcx + 4]
test r10d, r10d
je 0x18001d598
cmp word [rbx + 4], dx
jne 0x18001d514
mov eax, dword [rbx + 0x34]
jmp 0x18001d518
mov rax, qword [rbx + 0x30]
mov r8d, dword [rcx]
mov rdi, r13
sub r13, qword [rbx + 0x30]
add r8, r14
sub rdi, rax
cmp r10d, r12d
jbe 0x18001d598
mov ebx, 2
mov ebp, 0xfff
mov eax, dword [r8 + 4]
mov r9d, dword [r8]
mov rcx, rax
add r9, r14
sub rcx, r12
shr rcx, 1
cmp r10d, eax
jl 0x18001d589
test ecx, ecx
je 0x18001d589
lea rdx, [r8 + 8]
mov r11d, ecx
movzx eax, word [rdx]
shr eax, 0xc
cmp eax, 3
je 0x18001d576
cmp eax, 0xa
jne 0x18001d580
movzx eax, word [rdx]
and rax, rbp
add qword [rax + r9], r13
jmp 0x18001d580
movzx eax, word [rdx]
and rax, rbp
add dword [rax + r9], edi
add rdx, rbx
sub r11, 1
jne 0x18001d55a
mov eax, dword [r8 + 4]
sub r10d, eax
add r8, rax
cmp r10d, r12d
ja 0x18001d537
cmp dword [rsi + 0x10], 0
je 0x18001d5ad
mov r8d, dword [rsi + 0x10]
mov rdx, qword [rsi]
mov rcx, r15
call sub.ntdll.dll_memcpy
mov edx, dword [rsi + 0x14]
test edx, edx
je 0x18001d5df
shr edx, 2
mov r8d, edx
test edx, edx
je 0x18001d5df
shl r8, 2
mov rax, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
mov eax, dword [r8 + rax - 4]
add rcx, r8
sub r8, 4
add edx, 0xffffffff
mov dword [rcx + r15 - 4], eax
jne 0x18001d5c2
mov rax, qword [rsp + 0x40]
mov r13, qword [rsp + 0x88]
mov r8d, 0x18
lea rbp, [r13 + r14]
mov rdx, rsi
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x30], rax
call sub.ntdll.dll_memcpy
xor r15d, r15d
cmp dword [rsi + 0x10], r15d
je 0x18001d621
mov rax, qword [rsp + 0x40]
lea rcx, [r13 + rax + 0xc58]
mov qword [rbp + 0x18], rcx
cmp dword [rsi + 0x14], r15d
je 0x18001d63e
mov ecx, dword [rsi + 0x10]
mov rax, qword [rsp + 0x40]
add rcx, r13
lea rcx, [rcx + rax + 0xc58]
mov qword [rbp + 0x20], rcx
mov ebx, r15d
cmp dword [rsp + 0x68], r15d
je 0x18001d713
mov rsi, qword [rsp + 0x110]
mov rdi, qword [rsi]
cmp qword [0x180039e10], r15
je 0x18001d676
cmp qword [0x180039e18], r15
je 0x18001d676
cmp qword [0x180039e20], r15
jne 0x18001d6f9
lea r8, [0x18003e072]
lea rdx, [0x18003d776]
xor r9d, r9d
mov rcx, rdi
mov ebx, 0x7f
call fcn.180017b5c
mov qword [0x180039e10], rax
cmp rax, r15
je 0x18001d7c2
lea r8, [0x18003e07d]
lea rdx, [0x18003d776]
xor r9d, r9d
mov rcx, rdi
call fcn.180017b5c
mov qword [0x180039e18], rax
cmp rax, r15
je 0x18001d7c2
lea r8, [0x18003e05b]
lea rdx, [0x18003d776]
xor r9d, r9d
mov rcx, rdi
call fcn.180017b5c
mov qword [0x180039e20], rax
cmp rax, r15
je 0x18001d7c2
mov ebx, r15d
lea rdx, [0x180039e10]
mov r8d, 0x18
mov rcx, rbp
call sub.ntdll.dll_memcpy
jmp 0x18001d7c2
cmp qword [0x180039df8], r15
je 0x18001d72e
cmp qword [0x180039e00], r15
je 0x18001d72e
cmp qword [0x180039e08], r15
jne 0x18001d7a5
lea rcx, [0x18003d776]
mov ebx, 0x7f
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
cmp rax, r15
je 0x18001d7ba
lea rdx, [0x18003e072]
xor r8d, r8d
mov rcx, rax
call fcn.180017584
mov qword [0x180039df8], rax
cmp rax, r15
je 0x18001d7ba
lea rdx, [0x18003e07d]
xor r8d, r8d
mov rcx, rdi
call fcn.180017584
mov qword [0x180039e00], rax
cmp rax, r15
je 0x18001d7ba
lea rdx, [0x18003e05b]
xor r8d, r8d
mov rcx, rdi
call fcn.180017584
mov qword [0x180039e08], rax
cmp rax, r15
je 0x18001d7ba
mov ebx, r15d
lea rdx, [0x180039df8]
mov r8d, 0x18
mov rcx, rbp
call sub.ntdll.dll_memcpy
mov rsi, qword [rsp + 0x110]
cmp ebx, r15d
jne 0x18001d86b
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp + 0x48]
mov r8d, 0x800
call sub.ntdll.dll_memcpy
mov r11, qword [rsp + 0x40]
mov rcx, qword [0x180039b48]
mov ebp, 0x318
xor edx, edx
lea rdi, [r13 + r11]
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r15
je 0x18001d849
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov r8d, dword [rsp + 0x120]
lea r11, [rdi + 0x48]
mov rdx, rbx
mov rcx, rsi
mov qword [rbx + 8], r11
mov qword [rbx + 0x10], rdi
call fcn.1800179d8
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, r12d
cmp r12d, r15d
jne 0x18001d86b
mov rdx, qword [rsp + 0x128]
cmp rdx, r15
je 0x18001d86b
mov rax, qword [rsp + 0x40]
mov qword [rdx], rax
jmp 0x18001d86b
xor r15d, r15d
cmp r14, r15
je 0x18001d885
mov rdx, r14
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rcx, qword [rsp + 0x78]
cmp rcx, r15
je 0x18001d895
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret