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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rsp + 0xb0]
xor r13d, r13d
mov ebx, r9d
mov rbp, r8
mov r15, rdx
mov rdi, rcx
test rdx, rdx
jne 0x18001a41e
cmp byte [rcx], r13b
jne 0x18001a419
test byte [rcx + 1], 2
je 0x18001a419
mov rax, qword [rcx + 0x30]
cmp rax, r8
jne 0x18001a3de
mov rax, rsi
mov dword [rax], r13d
xor eax, eax
jmp 0x18001a7e5
jge 0x18001a419
test byte [rcx + 1], 8
jne 0x18001a493
inc rax
cmp rax, rbp
jne 0x18001a419
xor edx, edx
mov dword [rsi], r13d
call fcn.18001a930
test eax, eax
jne 0x18001a410
mov rcx, rdi
call fcn.180019b1c
cmp qword [rdi + 0x30], rbp
jne 0x18001a419
jmp 0x18001a3d7
cmp eax, 0x65
jne 0x18001a7e5
mov r14, r13
jmp 0x18001a47e
mov rcx, qword [rdx]
cmp word [rcx + 8], 0xd
ja 0x18001a473
mov rax, qword [rdx + 8]
movzx r8d, word [rax + 8]
mov rax, qword [rcx + 0x18]
cmp byte [rax], r13b
je 0x18001a445
test byte [rax], 2
jne 0x18001a473
mov al, 0xff
mov dl, 1
jmp 0x18001a449
mov al, 1
mov dl, 0xff
mov byte [r15 + 0x14], dl
mov byte [r15 + 0x15], al
test r8b, 4
je 0x18001a460
lea r14, [0x180025924]
jmp 0x18001a47a
test r8b, 0x39
jne 0x18001a473
lea r14, [0x180025ae8]
cmp qword [rcx + 0x20], r13
je 0x18001a47a
lea r14, [0x18002591c]
mov byte [r15 + 0x13], r13b
mov rcx, rdi
call fcn.18001a0d0
test eax, eax
je 0x18001a49b
cmp eax, 0x10
jne 0x18001a7e5
or dword [rsi], 0xffffffff
jmp 0x18001a3d7
mov eax, 1
sub eax, ebx
mov dword [rsp + 0x34], eax
mov rbp, qword [rdi + 0x88]
mov r12d, r13d
mov ecx, eax
movzx r13d, word [rbp + 0x18]
lea rbx, [rbp + 0x60]
dec r13d
mov qword [rsp + 0x38], rbx
mov esi, r13d
mov dword [rsp + 0x98], r13d
sar esi, cl
lea r8, [rbp + 0x1a]
mov word [rdi + 0x56], si
mov qword [rsp + 0x40], r8
test r14, r14
jne 0x18001a5d4
movzx r8d, word [r8]
mov word [rsp + 0x98], r8w
mov rdx, qword [rbx]
lea eax, [rsi + rsi]
movsxd rcx, eax
movzx eax, word [rcx + rdx]
ror ax, 8
movzx ecx, ax
movzx eax, r8w
and rcx, rax
add rcx, qword [rbp + 0x68]
cmp byte [rbp + 3], 0
je 0x18001a52f
jmp 0x18001a527
inc rcx
cmp rcx, qword [rbp + 0x58]
jae 0x18001a761
cmp byte [rcx], 0x80
jae 0x18001a51a
inc rcx
lea rdx, [rsp + 0x48]
call fcn.180009f20
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0xa0]
jge 0x18001a593
lea r12d, [rsi + 1]
cmp r12d, r13d
jle 0x18001a59e
or ebx, 0xffffffff
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x40]
xor r13d, r13d
cmp byte [rbp + 8], r13b
jne 0x18001a784
mov rbx, qword [rsp + 0x38]
movzx eax, word [rbp + 0x18]
cmp r12d, eax
jl 0x18001a71c
movzx ecx, byte [rbp + 9]
mov rax, qword [rbp + 0x50]
mov edx, dword [rcx + rax + 8]
jmp 0x18001a73f
jle 0x18001a5b9
lea r13d, [rsi - 1]
cmp r12d, r13d
jg 0x18001a5b2
movzx r8d, word [rsp + 0x98]
lea esi, [r12 + r13]
sar esi, 1
jmp 0x18001a4f3
mov ebx, 1
jmp 0x18001a554
xor r13d, r13d
mov word [rdi + 0x56], si
cmp byte [rbp + 8], r13b
jne 0x18001a76d
mov r8, qword [rsp + 0x40]
mov r12d, esi
jmp 0x18001a575
lea eax, [rsi + rsi]
movsxd rcx, eax
mov rax, qword [rbx]
movzx edx, word [rcx + rax]
movzx eax, word [r8]
ror dx, 8
movzx edx, dx
and rdx, rax
movzx eax, byte [rbp + 0xb]
add rdx, qword [rbp + 0x68]
movzx ecx, byte [rdx]
lea r9, [rdx + 1]
cmp ecx, eax
ja 0x18001a607
mov rdx, r9
jmp 0x18001a625
cmp byte [r9], 0
jl 0x18001a632
movzx eax, byte [r9]
and ecx, 0x7f
shl ecx, 7
add ecx, eax
movzx eax, word [rbp + 0xe]
cmp ecx, eax
ja 0x18001a632
add rdx, 2
mov r8, r15
call r14
mov ebx, eax
jmp 0x18001a6dd
movzx eax, byte [rbp + 0xa]
lea r8, [rdi + 0x30]
sub rdx, rax
mov rcx, rbp
call qword [rbp + 0x80]
mov ebx, dword [rdi + 0x30]
mov dword [rsp + 0x30], ebx
cmp ebx, 2
jl 0x18001a7cf
mov rcx, qword [rdi + 0x20]
xor edx, edx
mov eax, ebx
div dword [rcx + 0x34]
cmp eax, dword [rcx + 0x3c]
ja 0x18001a7cf
lea eax, [rbx + 0x12]
movsxd rcx, eax
call fcn.18000690c
mov r13, rax
test rax, rax
je 0x18001a7c5
and dword [rsp + 0x20], 0
mov r9, rax
mov r8d, ebx
mov word [rdi + 0x56], si
xor edx, edx
mov rcx, rdi
call fcn.180019c60
movsxd rcx, dword [rsp + 0x30]
mov ebx, eax
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rcx + r13], xmm0
mov word [rcx + r13 + 0x10], ax
and byte [rdi + 1], 0xfb
test ebx, ebx
jne 0x18001a7bb
xor r9d, r9d
mov r8, r15
mov rdx, r13
call fcn.1800253a4
mov rcx, r13
mov ebx, eax
call fcn.180006a24
mov r13d, dword [rsp + 0x98]
test ebx, ebx
jns 0x18001a6e7
lea r12d, [rsi + 1]
jmp 0x18001a6fe
xor r13d, r13d
test ebx, ebx
jle 0x18001a797
lea r13d, [rsi - 1]
mov dword [rsp + 0x98], r13d
cmp r12d, r13d
jg 0x18001a55e
mov rbx, qword [rsp + 0x38]
lea esi, [r12 + r13]
mov r8, qword [rsp + 0x40]
sar esi, 1
jmp 0x18001a5d4
lea eax, [r12 + r12]
movsxd rcx, eax
mov rax, qword [rbx]
movzx edx, word [rcx + rax]
movzx eax, word [r8]
ror dx, 8
movzx ecx, dx
and rcx, rax
mov rax, qword [rbp + 0x50]
mov edx, dword [rcx + rax]
bswap edx
mov rcx, rdi
mov word [rdi + 0x56], r12w
call fcn.18001a014
mov ebx, eax
test eax, eax
jne 0x18001a7de
mov eax, dword [rsp + 0x34]
jmp 0x18001a4a6
mov ecx, 0x10d00
call fcn.1800765e0
jmp 0x18001a7e5
or byte [rdi + 1], 2
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov dword [rax], r13d
xor eax, eax
jmp 0x18001a7e0
mov rax, qword [rsp + 0xb0]
mov word [rdi + 0x56], si
mov dword [rax], ebx
mov ebx, r13d
jmp 0x18001a7de
mov rax, qword [rsp + 0xb0]
mov ebx, r13d
mov word [rdi + 0x56], si
mov dword [rax], r13d
cmp byte [r15 + 0x13], r13b
je 0x18001a7de
mov ecx, 0x10d6b
call fcn.1800765e0
jmp 0x18001a7dc
mov rcx, r13
call fcn.180006a24
jmp 0x18001a7ca
mov ebx, 7
xor r13d, r13d
jmp 0x18001a7de
mov ecx, 0x10d4b
call fcn.1800765e0
xor r13d, r13d
mov ebx, eax
mov eax, ebx
mov word [rdi + 0x46], r13w
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret