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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13, qword [rcx + 0x18]
xor r15d, r15d
xor r12d, r12d
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r13
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
cmp r8d, 2
jb 0x18001bacc
cmp r8d, dword [rcx + 0x3c]
ja 0x18001bacc
test rdx, rdx
je 0x18001b880
mov rax, qword [rdx + 0x70]
lea ecx, [r15 + 1]
add word [rax + 0x36], cx
mov rax, qword [rax + 0x18]
add dword [rax + 0x18], ecx
jmp 0x18001b88b
mov edx, r14d
call fcn.1800179c8
mov rdi, rax
mov rcx, qword [r13 + 0x70]
mov qword [rbp + 0x58], rdi
call fcn.180012dc8
mov dword [rbp + 0x50], eax
mov ebx, eax
test eax, eax
jne 0x18001baa3
mov rcx, qword [r13 + 0x50]
mov eax, dword [rcx + 0x24]
bswap eax
mov dword [rbp + 0x40], eax
inc eax
bswap eax
mov dword [rcx + 0x24], eax
test byte [rsi + 0x26], 4
je 0x18001b90c
test rdi, rdi
jne 0x18001b8e3
xor r9d, r9d
lea r8, [rbp + 0x58]
mov edx, r14d
mov rcx, rsi
call fcn.180017958
mov ebx, eax
test eax, eax
jne 0x18001bac6
mov rdi, qword [rbp + 0x58]
mov rcx, qword [rdi + 0x70]
call fcn.180012dc8
mov dword [rbp + 0x50], eax
mov ebx, eax
test eax, eax
jne 0x18001baa3
mov rax, qword [rdi + 0x48]
xor edx, edx
mov rcx, qword [rdi + 0x50]
mov r8d, dword [rax + 0x30]
call fcn.18008d330
cmp byte [rsi + 0x21], r12b
je 0x18001b937
lea rax, [rbp + 0x50]
xor r9d, r9d
mov r8b, 2
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rsi
call fcn.180016890
mov ebx, dword [rbp + 0x50]
test ebx, ebx
jne 0x18001baa3
cmp dword [rbp + 0x40], r12d
je 0x18001ba57
mov rax, qword [r13 + 0x50]
lea r8, [rbp - 0x10]
xor r9d, r9d
mov rcx, rsi
mov r12d, dword [rax + 0x20]
bswap r12d
mov edx, r12d
call fcn.180017958
mov r15, qword [rbp - 0x10]
mov ebx, eax
test eax, eax
jne 0x18001baa3
mov rax, qword [r15 + 0x50]
mov ecx, dword [rsi + 0x34]
shr ecx, 2
mov r13d, dword [rax + 4]
bswap r13d
lea eax, [rcx - 2]
cmp r13d, eax
jbe 0x18001b996
mov ecx, 0x11010
call fcn.180078ddc
mov ebx, eax
jmp 0x18001baa3
lea eax, [rcx - 8]
cmp r13d, eax
jae 0x18001ba53
mov rcx, qword [r15 + 0x70]
call fcn.180012dc8
mov ebx, eax
test eax, eax
jne 0x18001baa3
mov rax, qword [r15 + 0x50]
lea ecx, [r13 + 1]
mov edx, r14d
bswap ecx
bswap edx
mov dword [rax + 4], ecx
lea ecx, [r13*4 + 8]
mov rax, qword [r15 + 0x50]
mov dword [rcx + rax], edx
test rdi, rdi
je 0x18001ba0e
test byte [rsi + 0x26], 4
jne 0x18001ba0e
mov rcx, qword [rdi + 0x70]
mov rdx, qword [rcx + 0x28]
cmp byte [rdx + 0x10], bl
jne 0x18001ba0e
movzx eax, word [rcx + 0x34]
test al, 2
je 0x18001ba0e
cmp dword [rdx + 0x80], ebx
jne 0x18001ba0e
mov edx, 0xfffb
and ax, dx
or ax, 0x10
mov word [rcx + 0x34], ax
mov rax, qword [rsi + 0x58]
xor ebx, ebx
test rax, rax
jne 0x18001ba33
mov r12d, dword [rsi + 0x3c]
mov ecx, 0x200
call fcn.180006f80
test rax, rax
je 0x18001ba48
mov dword [rax], r12d
mov qword [rsi + 0x58], rax
cmp r14d, dword [rax]
ja 0x18001baa3
mov edx, r14d
mov rcx, rax
call fcn.18000dac0
jmp 0x18001b98f
mov qword [rsi + 0x58], rax
mov ebx, 7
jmp 0x18001baa3
mov r13, qword [rbp - 8]
test rdi, rdi
jne 0x18001ba78
xor r9d, r9d
lea r8, [rbp + 0x58]
mov edx, r14d
mov rcx, rsi
call fcn.180017958
mov ebx, eax
test eax, eax
jne 0x18001bac6
mov rdi, qword [rbp + 0x58]
mov rcx, qword [rdi + 0x70]
call fcn.180012dc8
mov ebx, eax
test eax, eax
jne 0x18001baa3
mov rax, qword [rdi + 0x50]
bswap r12d
bswap r14d
mov dword [rax], r12d
mov rax, qword [rdi + 0x50]
and dword [rax + 4], ebx
mov rax, qword [r13 + 0x50]
mov dword [rax + 0x20], r14d
test rdi, rdi
je 0x18001bab4
mov byte [rdi], 0
mov rcx, qword [rdi + 0x70]
call fcn.18001292c
test r15, r15
je 0x18001bac2
mov rcx, qword [r15 + 0x70]
call fcn.18001292c
mov eax, ebx
jmp 0x18001bad6
mov rdi, qword [rbp + 0x58]
jmp 0x18001baa3
mov ecx, 0x10fda
call fcn.180078ddc
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret