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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x110
mov rax, qword [rcx]
xor ebx, ebx
mov r11, qword [rcx + 0x30]
xor r10d, r10d
mov qword [rsp + 0x78], rax
movsxd rax, dword [rcx + 0x2c]
movsxd r9, edx
imul r14, r9, 0x898
lea rdi, [r11 + rax*8]
mov dword [rsp + 0x40], r10d
mov rax, qword [rcx + 0x1170]
add r14, rcx
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], rdi
mov r8d, dword [rax + 0x38]
mov eax, 0x24924925
mul r8d
xor eax, eax
mov dword [r14 + 0x38], ebx
sub r8d, edx
mov qword [rsp + 0x90], rax
shr r8d, 1
add r8d, edx
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc8], rax
mov byte [rsp + 0x90], al
mov eax, dword [r14 + 0x58]
shr r8d, 3
cdq
xor eax, edx
mov dword [rsp + 0x54], r8d
sub eax, edx
mov dword [rsp + 0xc0], 0x7d00
mov rdx, qword [rcx + 0x20]
movsxd rcx, dword [rcx + 0x1c]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
lea r8, [rcx + rcx*2]
add r8, r8
lea rcx, [rdx + r8*8]
test r9d, r9d
jne 0x18003b54b
cmp rdx, rcx
jae 0x18003b567
movsx eax, word [rdx + 0xc]
mov dword [rdx + 0x18], eax
movsx eax, word [rdx + 0xe]
mov dword [rdx + 0x1c], eax
add rdx, 0x30
cmp rdx, rcx
jb 0x18003b532
jmp 0x18003b567
cmp rdx, rcx
jae 0x18003b567
movsx eax, word [rdx + 0xe]
mov dword [rdx + 0x18], eax
movsx eax, word [rdx + 0xc]
mov dword [rdx + 0x1c], eax
add rdx, 0x30
cmp rdx, rcx
jb 0x18003b550
mov qword [rsp + 0x108], rbp
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0xf8], r12
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xe8], r15
cmp r11, rdi
jae 0x18003bc97
xor ecx, ecx
nop word [rax + rax]
mov rdi, qword [r11]
mov r9d, 0x7d00
mov r15d, 0xffff8300
mov dword [rsp + 0x50], ecx
mov edx, ecx
mov word [rsp + 0x140], cx
movzx r13d, cx
mov word [rsp + 0x148], cx
mov rax, qword [rdi + 0x28]
mov rsi, rcx
mov word [rsp + 0x34], cx
mov r11d, r9d
mov dword [rsp + 0x30], r9d
mov r8d, r15d
mov ebp, r9d
mov dword [rsp + 0x38], r9d
movsx ecx, byte [rax + 3]
mov r12d, r15d
mov dword [rsp + 0x3c], r15d
mov eax, ecx
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x58], r9d
mov dword [rsp + 0x5c], r15d
test cl, cl
jns 0x18003b610
neg eax
mov r10d, dword [rsp + 0x60]
cmp eax, r10d
jne 0x18003b651
movsx eax, byte [rdi + 3]
mov ecx, eax
test al, al
jns 0x18003b626
neg ecx
cmp ecx, r10d
jne 0x18003b651
mov r10, rdi
nop
mov rdi, qword [rdi + 0x28]
movsx eax, byte [rdi + 3]
mov ecx, eax
test al, al
jns 0x18003b640
neg ecx
cmp ecx, dword [rsp + 0x60]
jne 0x18003b64d
cmp rdi, r10
jne 0x18003b630
jmp 0x18003b651
mov rdi, qword [rdi + 0x20]
xor al, al
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x138], al
nop
mov word [rsp + 0x130], r13w
mov dword [rsp + 0x68], r11d
test edx, edx
je 0x18003ba0d
mov ecx, dword [rdi + 0x18]
mov eax, ecx
mov edx, dword [rdi + 0x1c]
cmp ecx, r9d
cmovge eax, r9d
cmp ecx, r15d
mov r9d, eax
mov dword [rsp + 0x30], eax
cmovle ecx, r15d
cmp edx, r11d
mov r15d, ecx
mov r10d, ecx
movzx ecx, word [rdi]
mov r11d, edx
cmovge r11d, dword [rsp + 0x68]
movzx eax, cx
movzx r13d, cx
cmovge r13w, word [rsp + 0x130]
cmp edx, r8d
cmovle ax, word [rsp + 0x140]
mov word [rsp + 0x140], ax
mov eax, edx
cmovle eax, r8d
mov r8d, eax
test cl, 3
jne 0x18003b6ec
cmp edx, ebp
mov eax, edx
cmovge eax, ebp
mov ebp, eax
cmp edx, r12d
jle 0x18003b6ec
mov r12d, edx
movsx eax, byte [rdi + 3]
cmp eax, dword [rsp + 0x64]
jne 0x18003b701
cmp rdi, qword [rsp + 0x70]
jne 0x18003ba28
test rsi, rsi
je 0x18003b96e
mov rcx, qword [rsi + 0x40]
cmp qword [rbx + 0x38], rcx
jne 0x18003b96e
movzx eax, byte [rdi + 2]
cmp byte [rcx + 2], al
jne 0x18003b807
mov ecx, dword [rsp + 0x38]
cmp ecx, r9d
mov r15d, dword [rsp + 0x3c]
movzx eax, word [rsp + 0x148]
cmovge ecx, r9d
movzx edx, word [rsp + 0x34]
cmp r15d, r10d
mov dword [rsp + 0x30], ecx
cmovle r15d, r10d
mov qword [rsi + 0x40], rdi
cmp dword [rsp + 0x48], r11d
cmovge ax, r13w
movzx r13d, ax
mov eax, dword [rsp + 0x48]
cmovge eax, r11d
cmp dword [rsp + 0x4c], r8d
mov r11d, eax
mov eax, dword [rsp + 0x4c]
cmovle dx, word [rsp + 0x140]
cmovle eax, r8d
mov r8d, eax
mov word [rsp + 0x140], dx
mov eax, dword [rsp + 0x58]
cmp eax, ebp
cmovge eax, ebp
mov ebp, eax
mov eax, dword [rsp + 0x5c]
cmp eax, r12d
cmovle eax, r12d
mov r12d, eax
lea eax, [r15 + rcx]
sar eax, 1
mov word [rsi + 2], ax
mov eax, r15d
sub eax, ecx
sar eax, 1
mov word [rsi + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x18003b7d3
mov eax, r12d
sub eax, ebp
cmp eax, dword [rsp + 0x54]
jge 0x18003b7d3
or byte [rsi], 1
jmp 0x18003b7d6
and byte [rsi], 0xfe
movzx eax, r8w
mov word [rsi + 6], r11w
sub ax, r11w
mov word [rsi + 8], r8w
mov word [rsi + 0xa], ax
dec dword [r14 + 0x38]
movzx eax, byte [rsp + 0x138]
xor ecx, ecx
mov edx, ecx
mov dword [rsp + 0x50], ecx
mov ebx, ecx
jmp 0x18003ba0f
mov eax, r8d
sub eax, r11d
cdq
mov ecx, eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x48]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
jle 0x18003b88f
cmp r9d, dword [rsp + 0x38]
mov ecx, r9d
mov eax, r10d
mov qword [rsi + 0x40], rdi
cmovge ecx, dword [rsp + 0x38]
cmp r10d, dword [rsp + 0x3c]
mov dword [rsp + 0x38], ecx
cmovle eax, dword [rsp + 0x3c]
mov ebx, eax
mov dword [rsp + 0x3c], eax
add eax, ecx
mov dword [rsp + 0x30], r9d
sar eax, 1
mov word [rsi + 2], ax
mov eax, ebx
sub eax, ecx
sar eax, 1
mov word [rsi + 4], ax
movzx eax, word [rsp + 0x140]
dec dword [r14 + 0x38]
xor ecx, ecx
mov word [rsp + 0x140], ax
movzx eax, byte [rsp + 0x138]
mov edx, ecx
mov dword [rsp + 0x50], ecx
mov ebx, ecx
jmp 0x18003ba0f
mov ecx, dword [rsp + 0x38]
cmp ecx, r9d
mov r15d, dword [rsp + 0x3c]
movzx edx, word [rsp + 0x140]
cmovge ecx, r9d
cmp r15d, r10d
mov dword [rsp + 0x30], ecx
mov qword [rbx + 0x40], rdi
cmovle r15d, r10d
lea eax, [r15 + rcx]
sar eax, 1
mov word [rbx + 2], ax
mov eax, r15d
sub eax, ecx
sar eax, 1
mov word [rbx + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x18003b8e3
mov eax, r12d
sub eax, ebp
cmp eax, dword [rsp + 0x54]
jge 0x18003b8e3
or byte [rbx], 1
mov word [rbx + 6], r11w
movzx eax, r8w
mov word [rbx + 8], r8w
sub ax, r11w
mov word [rbx + 0xa], ax
movups xmm0, xmmword [rbx]
movzx eax, byte [rsp + 0x138]
mov dword [rsp + 0x38], ecx
movups xmmword [rsi], xmm0
mov word [rsp + 0x34], dx
movups xmm1, xmmword [rbx + 0x10]
mov word [rsp + 0x140], dx
mov dword [rsp + 0x3c], r15d
movups xmmword [rsi + 0x10], xmm1
mov dword [rsp + 0x48], r11d
movups xmm0, xmmword [rbx + 0x20]
mov dword [rsp + 0x4c], r8d
mov word [rsp + 0x148], r13w
movups xmmword [rsi + 0x20], xmm0
mov dword [rsp + 0x58], ebp
movups xmm1, xmmword [rbx + 0x30]
mov dword [rsp + 0x5c], r12d
movups xmmword [rsi + 0x30], xmm1
movsd xmm0, qword [rbx + 0x40]
movsd qword [rsi + 0x40], xmm0
dec dword [r14 + 0x38]
xor ecx, ecx
mov edx, ecx
mov dword [rsp + 0x50], ecx
mov ebx, ecx
jmp 0x18003ba0f
movzx edx, word [rsp + 0x140]
lea eax, [r15 + r9]
sar eax, 1
mov word [rbx + 2], ax
mov eax, r10d
sub eax, r9d
mov qword [rbx + 0x40], rdi
sar eax, 1
mov word [rbx + 4], ax
movzx eax, dl
or al, r13b
test al, 3
je 0x18003b9a8
mov eax, r12d
sub eax, ebp
cmp eax, dword [rsp + 0x54]
jge 0x18003b9a8
or byte [rbx], 1
movzx eax, r8w
mov word [rbx + 6], r11w
sub ax, r11w
mov word [rbx + 8], r8w
xor ecx, ecx
mov word [rbx + 0xa], ax
movzx eax, byte [rsp + 0x138]
mov rsi, rbx
mov word [rsp + 0x34], dx
mov ebx, ecx
mov word [rsp + 0x140], dx
mov edx, ecx
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x4c], r8d
mov word [rsp + 0x148], r13w
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x30], r9d
jmp 0x18003ba0f
xor ecx, ecx
cmp rdi, qword [rsp + 0x70]
jne 0x18003ba2c
test al, al
jne 0x18003bc70
mov byte [rsp + 0x138], 1
jmp 0x18003ba2c
mov edx, dword [rsp + 0x50]
test edx, edx
jne 0x18003bc5a
movsx eax, byte [rdi + 3]
mov byte [rsp + 0x130], al
mov ecx, eax
test al, al
jns 0x18003ba47
neg eax
cmp eax, dword [rsp + 0x60]
je 0x18003ba57
cmp rdi, qword [rdi + 0x28]
jne 0x18003bc5a
mov edx, dword [r14 + 0x38]
mov dword [rsp + 0x64], ecx
xor ecx, ecx
mov dword [rsp + 0x40], ecx
mov r10d, ecx
mov dword [rsp + 0x44], ecx
mov ebx, ecx
cmp edx, 0x12
jge 0x18003ba92
cmp qword [r14 + 0x40], rcx
jne 0x18003bb67
lea rax, [r14 + 0x60]
mov dword [r14 + 0x3c], send
mov qword [r14 + 0x40], rax
jmp 0x18003bb67
mov r8d, dword [r14 + 0x3c]
cmp edx, r8d
jl 0x18003bb67
cmp r8d, 0x1c71c71
jge 0x18003bd21
mov eax, r8d
lea ebp, [r8 + 4]
sar eax, 2
add ebp, eax
cmp ebp, r8d
jl 0x18003bac5
cmp ebp, 0x1c71c71
jle 0x18003baca
mov ebp, 0x1c71c71
mov rax, qword [r14 + 0x40]
lea r15, [r14 + 0x60]
mov r9d, ebp
mov edx, 0x48
cmp rax, r15
jne 0x18003bb2f
lea rax, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
call fcn.180030ed0
mov r10d, dword [rsp + 0x44]
mov qword [r14 + 0x40], rax
mov dword [rsp + 0x40], r10d
test r10d, r10d
jne 0x18003bd5a
mov rcx, rax
mov rdx, r15
mov r8d, 0x510
call fcn.180024620
mov r10d, dword [rsp + 0x44]
mov dword [rsp + 0x40], r10d
jmp 0x18003bb5f
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180030ed0
mov r10d, dword [rsp + 0x44]
mov qword [r14 + 0x40], rax
mov dword [rsp + 0x40], r10d
test r10d, r10d
jne 0x18003bd5a
mov edx, dword [r14 + 0x38]
mov dword [r14 + 0x3c], ebp
movsxd rax, edx
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x40]
lea rbx, [rax + rcx*8]
lea eax, [rdx + 1]
mov dword [r14 + 0x38], eax
test r10d, r10d
jne 0x18003bd5a
movaps xmm0, xmmword [rsp + 0x90]
test rsi, rsi
movzx eax, byte [rsp + 0x130]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x10], xmm0
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0xc0]
movups xmmword [rbx + 0x30], xmm0
mov byte [rbx + 1], al
lea rax, [rbx - 0x48]
mov qword [rbx + 0x38], rdi
cmove rax, rsi
mov qword [rbx + 0x40], rdi
mov rsi, rax
movzx edx, word [rdi]
mov r15d, dword [rdi + 0x18]
mov r9d, r15d
mov r8d, dword [rdi + 0x1c]
mov r11d, r8d
mov dword [rsp + 0x30], r15d
movzx r13d, dx
mov word [rsp + 0x140], dx
test dl, 3
je 0x18003bc0a
mov ebp, 0x7d00
mov r12d, 0xffff8300
jmp 0x18003bc10
mov r12d, r8d
mov ebp, r8d
mov edx, 1
mov dword [rsp + 0x50], edx
cmp rdi, qword [rdi + 0x28]
jne 0x18003bc5f
mov word [rbx + 2], r15w
test byte [rdi], 3
je 0x18003bc2b
or byte [rbx], dl
movzx eax, word [rdi + 0x1c]
mov word [rbx + 6], ax
movzx eax, word [rdi + 0x1c]
mov word [rbx + 8], ax
xor eax, eax
mov word [rbx + 0xa], ax
mov edx, eax
mov rdi, qword [rdi + 0x20]
mov ebx, eax
mov dword [rsp + 0x50], eax
movzx eax, byte [rsp + 0x138]
jmp 0x18003b660
mov r9d, dword [rsp + 0x30]
mov rdi, qword [rdi + 0x20]
movzx eax, byte [rsp + 0x138]
jmp 0x18003b660
mov r11, qword [rsp + 0x80]
add r11, 8
mov qword [rsp + 0x80], r11
cmp r11, qword [rsp + 0x88]
jb 0x18003b5a0
mov r10d, dword [rsp + 0x40]
movsxd rax, dword [r14 + 0x38]
mov r8, qword [r14 + 0x40]
lea rcx, [rax + rax*8]
lea rax, [r8 + rcx*8]
cmp r8, rax
jae 0x18003bd5a
lea rcx, [rcx*8 - 1]
movabs rax, 0xe38e38e38e38e38f
mul rcx
add r8, 0xa
mov rbx, rdx
shr rbx, 6
inc rbx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r8 + 0x2e]
mov r11, qword [r8 + 0x36]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rax + 0x28]
mov ecx, dword [r11 + 0x1c]
mov r10d, dword [rax + 0x1c]
cmp r9d, ecx
jge 0x18003bd28
cmp r10d, r9d
jge 0x18003bd0c
sub r9d, r10d
sar r9d, 1
add word [r8], r9w
mov rax, qword [r11 + 0x20]
mov edx, dword [rax + 0x1c]
cmp edx, ecx
jle 0x18003bd4a
sub edx, ecx
sar edx, 1
add word [r8], dx
jmp 0x18003bd4a
mov eax, 0x40
jmp 0x18003bd5d
cmp r10d, r9d
jle 0x18003bd37
sub r10d, r9d
sar r10d, 1
add word [r8], r10w
mov rax, qword [r11 + 0x20]
mov edx, dword [rax + 0x1c]
cmp edx, ecx
jge 0x18003bd4a
sub ecx, edx
sar ecx, 1
add word [r8], cx
add r8, 0x48
sub rbx, 1
jne 0x18003bce0
mov eax, dword [rsp + 0x40]
jmp 0x18003bd5d
mov eax, r10d
mov r15, qword [rsp + 0xe8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0x108]
add rsp, 0x110
pop r14
pop rdi
pop rbx
ret