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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xd0
mov rbx, rcx
test rcx, rcx
jne 0x140035821
lea eax, [rcx + 0x14]
add rsp, 0xd0
pop rbx
ret
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rsp + 0x44], eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
test ecx, ecx
jne 0x140035846
test eax, eax
je 0x140035ca7
mov rcx, rbx
call fcn.140035d70
mov dword [rsp + 0x3c], eax
cmp eax, 2
jne 0x14003586f
cmp word [rbx], 0
je 0x140035ca7
mov eax, 6
add rsp, 0xd0
pop rbx
ret
mov rdx, qword [rbx + 8]
mov qword [rsp + 0xc0], rdi
xor edi, edi
mov ecx, edi
mov qword [rsp + 0x70], rdx
mov r10d, edi
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x50], edi
cmp di, word [rbx]
jge 0x140035c9f
mov qword [rsp + 0xe8], rbp
mov ebp, edi
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x78], rdi
nop
mov rax, qword [rbx + 0x18]
mov r9d, edi
mov dword [rsp + 0xf8], edi
mov r11d, edi
mov dword [rsp + 0x20], edi
mov r13d, ecx
mov qword [rsp + 0x60], 0
mov r12d, 0xffffffff
movsx r8d, word [rax + rbp]
mov dword [rsp + 0x4c], r8d
mov r14d, r8d
mov qword [rsp + 0x28], 0
cmp ecx, r8d
je 0x140035c4a
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
movsxd rax, ecx
mov qword [rsp + 0x68], rax
mov r15, rax
nop dword [rax + rax]
cmp r14d, r12d
je 0x140035c36
movsxd rbp, r14d
cmp r13d, r12d
je 0x14003598a
mov eax, dword [rdx + r15*8]
lea rcx, [rsp + 0x30]
sub eax, dword [rdx + rbp*8]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + r15*8 + 4]
sub eax, dword [rdx + rbp*8 + 4]
mov dword [rsp + 0x34], eax
call fcn.140038450
mov r9d, dword [rsp + 0x20]
mov r10d, eax
mov dword [rsp + 0x48], eax
test eax, eax
je 0x140035c03
mov rbx, qword [rsp + 0x30]
mov r11d, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0xf8]
jmp 0x1400359a0
mov ecx, dword [rsp + 0xf8]
mov rbx, rsi
mov qword [rsp + 0x30], rbx
mov r10d, ecx
mov dword [rsp + 0x48], ecx
test r9d, r9d
je 0x140035bee
test r12d, r12d
movsxd r11, r11d
mov eax, r14d
mov r8, rbx
cmovns eax, r12d
cmovs rsi, rdi
movsxd r12, dword [rsp + 0x28]
mov rdi, r11
mov dword [rsp + 0x58], eax
mov eax, r9d
cmovns eax, ecx
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0xf8], eax
mov rcx, r12
movsxd rax, dword [rsp + 0x30]
imul rcx, rax
shr r8, 0x20
movsxd rdx, r8d
imul rdi, rdx
mov rax, rdi
shr rax, 0x3f
sub rdi, rax
mov rax, rcx
add rdi, 0x8000
shr rax, 0x3f
sub rcx, rax
sar rdi, 0x10
add rcx, 0x8000
sar rcx, 0x10
add edi, ecx
cmp edi, 0xffff1000
jle 0x140035b81
mov ecx, dword [rsp + 0x2c]
add edi, 0x10000
add ecx, r8d
mov r8d, dword [rsp + 0x30]
add r8d, r12d
mov eax, r8d
neg eax
cmp dword [rsp + 0x3c], 0
cmovne r8d, eax
mov eax, ecx
neg eax
mov dword [rsp + 0x28], r8d
mov r8d, dword [rsp + 0x3c]
test r8d, r8d
cmovne eax, ecx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x30]
imul r11, rax
imul rdx, r12
mov rax, r11
shr rax, 0x3f
sub r11, rax
add r11, 0x8000
sar r11, 0x10
mov rax, rdx
shr rax, 0x3f
sub rdx, rax
mov eax, r11d
add rdx, 0x8000
sar rdx, 0x10
sub eax, edx
sub edx, r11d
test r8d, r8d
mov r8d, r10d
cmovne edx, eax
cmp r9d, r10d
movsxd rax, edx
cmovl r8d, r9d
mov qword [rsp + 0x80], rax
movsxd r9, dword [rsp + 0x44]
mov rcx, r9
movsxd r10, r8d
imul rcx, rax
movsxd rax, edi
imul r10, rax
mov qword [rsp + 0x90], rdx
mov rax, r10
mov dword [rsp + 0x54], r8d
shr rax, 0x3f
sub r10, rax
mov rax, rcx
shr rax, 0x3f
add r10, 0x8000
sub rcx, rax
sar r10, 0x10
add rcx, 0x8000
mov qword [rsp + 0x88], r10
sar rcx, 0x10
cmp ecx, r10d
jg 0x140035b20
mov eax, r9d
mov edx, edi
jmp 0x140035b23
mov eax, r8d
mov ecx, dword [rsp + 0x20]
mov r8d, edx
mov edx, eax
call fcn.140034f00
mov r12d, eax
movsxd rax, dword [rsp + 0x40]
mov rdx, rax
imul rdx, qword [rsp + 0x80]
mov rcx, rdx
shr rcx, 0x3f
sub rdx, rcx
add rdx, 0x8000
sar rdx, 0x10
cmp edx, dword [rsp + 0x88]
jle 0x140035b6e
mov edi, dword [rsp + 0x90]
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x28]
mov r8d, edi
mov edx, eax
call fcn.140034f00
mov r8d, eax
jmp 0x140035b87
xor r8d, r8d
xor r12d, r12d
cmp rbp, r15
je 0x140035be7
movsxd rdx, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x38]
mov ebx, dword [rsp + 0x40]
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x68]
mov edi, dword [rsp + 0x44]
nop dword [rax + rax]
mov eax, dword [r10 + rbp*8]
mov rcx, rbp
add eax, r12d
add eax, edi
mov dword [r10 + rbp*8], eax
lea eax, [r8 + rbx]
add dword [r10 + rbp*8 + 4], eax
inc rbp
cmp rcx, rdx
cmovge rbp, r11
inc r14d
cmp rcx, rdx
cmovge r14d, r9d
cmp rbp, r15
jne 0x140035bb0
mov rbx, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x58]
jmp 0x140035bf1
mov r14d, r13d
mov r9d, dword [rsp + 0x48]
mov rdi, rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x28], rbx
mov r8d, dword [rsp + 0x4c]
mov eax, r13d
mov rdx, qword [rsp + 0x70]
inc r13d
mov r11d, dword [rsp + 0x2c]
cmp eax, r8d
cmovge r13d, dword [rsp + 0x38]
inc r15
cmp eax, r8d
cmovge r15, qword [rsp + 0x68]
cmp r13d, r14d
jne 0x140035930
mov rbx, qword [rsp + 0xe0]
xor edi, edi
mov r10d, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x78]
movsx eax, word [rbx]
lea ecx, [r8 + 1]
inc r10d
mov dword [rsp + 0x38], ecx
add rbp, 2
mov dword [rsp + 0x50], r10d
mov qword [rsp + 0x78], rbp
cmp r10d, eax
jl 0x1400358d0
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xc0]
xor eax, eax
add rsp, 0xd0
pop rbx
ret