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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
imul eax, edx, 0x550
mov r12, r8
mov r13d, edx
mov r15, rcx
mov r14d, edx
mov dword [rsp + 0x88], eax
cmp edx, eax
ja 0x1800354fa
mov ebp, dword [rsp + 0x78]
xor ebx, ebx
mov rdi, qword [rsp + 0x88]
mov eax, dword [0x1800624b0]
cmp r14d, 0x70d5
ja 0x1800353ca
je 0x180035310
cmp r14d, 0x35
je 0x1800352dd
cmp r14d, 0xdc
je 0x1800352d3
cmp r14d, 0x1c5d
je 0x1800352c5
cmp r14d, 0x3885
je 0x1800352b2
cmp r14d, 0x54ad
jne 0x1800354d3
mov qword [rdi], rbx
jmp 0x1800354d3
mov dword [rdi + 0x1c], ebx
mov qword [rdi + 0x2c], rbx
mov eax, dword [r12]
mov dword [rdi + 0x4c], eax
jmp 0x1800354d3
mov eax, dword [r12]
inc eax
mov dword [rdi + 0x18], eax
jmp 0x1800354d3
mov ebp, 0x80000000
jmp 0x1800354d3
test r15, r15
je 0x1800354ec
cmp dword [r12], ebx
jl 0x1800354ec
mov ecx, 0x58
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800354ec
mov qword [rax + 0x50], r15
jmp 0x1800354d3
mov qword [rdi + 8], rbx
mov qword [rdi + 0x40], rbx
mov eax, dword [r12]
inc eax
movsxd rcx, eax
shl rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x180035356
mov eax, dword [r15 + 0x10]
lea rdx, [rsp + 0x78]
mov r8, rdi
mov dword [rsp + 0x78], eax
mov ecx, 0x31
call fcn.18001bc90
test eax, eax
jne 0x1800354d3
mov esi, 0x11
nop dword [rax + rax]
mov eax, esi
sub eax, 0x11
je 0x1800353a1
sub eax, 0xa
je 0x1800353c2
sub eax, 0x32
je 0x18003538d
cmp eax, 0x3c
jne 0x1800353b7
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
mov qword [rdi + 0x40], rbx
mov qword [rdi + 0x50], rbx
jmp 0x1800353b1
mov rcx, qword [rdi + 0x10]
mov qword [rdi + 8], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x10], rbx
jmp 0x1800353b7
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rdi + 8]
mov qword [rdi], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esi, 0x3c
cmp esi, 0x101
jb 0x180035360
mov rdi, rbx
jmp 0x1800354d3
cmp r14d, 0x75bc
je 0x180035404
cmp r14d, 0x8cfd
je 0x1800354f1
cmp r14d, 0xea9c
je 0x1800353fb
cmp r14d, 0x15f7c
je 0x1800354fa
jmp 0x1800354d3
mov dword [rsp + 0x20], ebp
jmp 0x1800354d3
test r15, r15
je 0x1800354f6
mov r8d, dword [r12]
test r8d, r8d
jle 0x1800354f6
mov r9d, ebx
mov rdx, rbx
cmp r8d, 8
jb 0x1800354a9
cmp eax, 2
jl 0x1800354a9
movd xmm1, ebp
mov ecx, r8d
pshufd xmm1, xmm1, 0
movdqa xmm2, xmm1
and ecx, 0x80000007
jge 0x18003544e
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, r8d
sub eax, ecx
movsxd rcx, eax
nop word [rax + rax]
movdqu xmm0, xmmword [r15 + rdx*4]
add r9d, 8
pmaxsd xmm1, xmm0
movdqu xmm0, xmmword [r15 + rdx*4 + 0x10]
add rdx, 8
pmaxsd xmm2, xmm0
cmp rdx, rcx
jl 0x180035460
pmaxsd xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movd ebp, xmm1
cmp r9d, r8d
jge 0x1800354d3
sub r8d, r9d
lea rcx, [r15 + rdx*4]
mov edx, r8d
nop dword [rax + rax]
mov eax, dword [rcx]
lea rcx, [rcx + 4]
cmp eax, ebp
cmovle eax, ebp
mov ebp, eax
sub rdx, 1
jne 0x1800354c0
imul eax, r13d, 0x88
add r14d, eax
cmp r14d, dword [rsp + 0x88]
ja 0x1800354fa
jmp 0x180035263
mov rax, rbx
jmp 0x1800354ff
mov rax, rdi
jmp 0x1800354ff
mov dword [rsp + 0x20], ebp
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret