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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x50], 0
mov rbp, 0xfffffffffffffff5
cmp r8, 0x13
jb 0x1400380f0
mov rbx, r9
mov rsi, rdx
mov rdi, rcx
mov r12, qword [rsp + 0xc0]
test r12, r12
lea r13, [rsp + 0x20]
mov rax, r12
cmove rax, r13
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rcx + 0x40], xmm2
mov rax, qword [rax + 0x30]
mov qword [rcx + 0x50], rax
movups xmmword [rcx + 0x30], xmm1
movups xmmword [rcx + 0x20], xmm0
xor r14d, r14d
cmp dword [rcx + 0x40], 3
setge r14b
add r14d, 1
cmp r14w, 2
je 0x140037d70
xor ebp, ebp
cmp r14d, 1
jne 0x140037d77
call fcn.1400519b0
jmp 0x140037d75
call fcn.140063ce0
mov ebp, eax
movzx ecx, word [rdi + 0xd0]
cmp ecx, 2
je 0x140037dab
xor eax, eax
cmp ecx, 1
jne 0x140037d8f
call fcn.1400519b0
cmp eax, ebp
jge 0x140037db4
mov rax, qword [rdi + 0x10]
mov rdx, qword [rdi + 0xc8]
test rax, rax
je 0x140037de5
mov rcx, qword [rdi + 0x18]
call rax
jmp 0x140037ded
call fcn.140063ce0
cmp eax, ebp
jl 0x140037d93
cmp word [rdi + 0xd2], r14w
je 0x140037eb3
lea r15, [rdi + 0xd2]
cmp dword [rdi + 0x40], 2
mov rcx, qword [rdi + 0xc8]
jg 0x140037e1a
mov edx, 0x4020
call fcn.1400533b0
jmp 0x140037eaf
mov rcx, rdx
call sub.msvcrt.dll_free
cmp dword [rdi + 0x40], 2
mov rax, qword [rdi]
jg 0x140037e08
test rax, rax
je 0x140037e35
mov rcx, qword [rdi + 0x18]
mov edx, 0x4020
call rax
jmp 0x140037e3f
test rax, rax
je 0x140037e6b
mov rcx, qword [rdi + 0x18]
mov edx, 0x40038
call rax
jmp 0x140037e75
mov edx, 0x40038
call fcn.140063f90
mov rcx, qword [rdi + 0xc8]
mov edx, dword [rdi + 0x40]
call fcn.140064130
jmp 0x140037eaf
mov ecx, 0x4020
call sub.msvcrt.dll_malloc
mov qword [rdi + 0xc8], rax
test rax, rax
je 0x140037f67
mov edx, 0x4020
mov rcx, rax
call fcn.1400533b0
cmp qword [rdi + 0xc8], 0
jne 0x140037ea0
jmp 0x140037f67
mov ecx, 0x40038
call sub.msvcrt.dll_malloc
mov qword [rdi + 0xc8], rax
test rax, rax
je 0x140037f67
mov edx, 0x40038
mov rcx, rax
call fcn.140063f90
cmp qword [rdi + 0xc8], 0
je 0x140037f67
mov word [rdi + 0xd0], r14w
lea r15, [rdi + 0xd2]
mov word [r15], r14w
lea rax, [rdi + 0x20]
mov ecx, dword [rax]
test ecx, ecx
je 0x140037ed0
mov edx, ecx
and edx, 0xfffffffc
mov rax, 0xfffffffffffffffe
cmp edx, 4
je 0x140037edb
jmp 0x140037ee9
mov dword [rax], 4
mov ecx, 4
add ecx, 0xfffffffc
lea rax, [0x1400da620]
mov rax, qword [rax + rcx*8]
test r12, r12
mov rcx, r12
cmove rcx, r13
mov qword [rdi + 0x68], rax
xor r14d, r14d
cmp dword [rdi + 0x24], 0
sete r14b
mov rdx, r14
shl rdx, 0x10
shl r14, 0x11
add r14, rax
cmp dword [rcx + 0x24], 0
cmovne r14, rdx
cmp qword [rdi + 0x70], r14
jae 0x140037f3b
mov qword [rdi + 0x70], 0
mov rax, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x78]
test rax, rax
je 0x140037f41
mov rcx, qword [rdi + 0x18]
call rax
jmp 0x140037f49
mov r15, qword [rdi + 0x78]
jmp 0x140037fa5
mov rcx, rdx
call sub.msvcrt.dll_free
mov rax, qword [rdi + 8]
mov rcx, qword [rdi + 0x18]
test rax, rax
je 0x140037f73
mov rdx, r14
call rax
mov r15, rax
mov qword [rdi + 0x78], rax
test rax, rax
jne 0x140037fa1
mov rbp, 0xfffffffffffffff7
jmp 0x1400380f0
mov rax, qword [rdi]
test rax, rax
je 0x140038001
mov rdx, r14
call rax
test rax, rax
je 0x140038104
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.1400175c0
mov qword [rdi + 0x78], r15
mov qword [rdi + 0x70], r14
mov qword [rdi + 0x80], r15
mov qword [rdi + 0x88], 0
lea rcx, [rdi + 0x98]
xor edx, edx
call fcn.140050a80
mov qword [rdi + 0x60], rbx
cmp dword [rdi + 0x24], 0
jne 0x140038029
mov r14, qword [rdi + 0xc8]
mov edx, dword [rdi + 0x40]
mov rcx, r14
cmp edx, 2
jg 0x140037ff1
call fcn.140056a20
test rbx, rbx
je 0x140038013
mov rdx, qword [rbx + 0x28]
jmp 0x140038015
call fcn.140063ea0
test rbx, rbx
je 0x14003801f
mov rdx, qword [rbx + 0x30]
jmp 0x140038021
mov ecx, 1
mov rdx, r14
call sub.msvcrt.dll_calloc
jmp 0x140037f5b
xor edx, edx
mov rcx, r14
call fcn.140056b80
jmp 0x140038029
xor edx, edx
mov rcx, r14
call fcn.140064430
test r12, r12
mov rax, r12
cmove rax, r13
cmp dword [rax + 0x20], 3
jl 0x140038050
test r12, r12
mov rcx, qword [rdi + 0xc8]
cmovne r13, r12
mov edx, dword [r13 + 0x28]
call fcn.1400641f0
mov dword [rsi], 0x184d2204
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x28]
shl eax, 5
and eax, 0x20
mov edx, dword [rdi + 0x3c]
shl edx, 4
and edx, 0x10
or edx, eax
xor eax, eax
cmp qword [rdi + 0x30], 0
setne al
lea eax, [rdx + rax*8]
and ecx, 1
lea eax, [rax + rcx*4]
xor ecx, ecx
cmp dword [rdi + 0x38], 0
setne cl
or ecx, eax
or cl, 0x40
mov byte [rsi + 4], cl
movzx eax, byte [rdi + 0x20]
shl al, 4
and al, 0x70
mov byte [rsi + 5], al
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x1400380bb
mov qword [rsi + 6], rax
lea rbp, [rsi + 0xe]
mov qword [rdi + 0x90], 0
jmp 0x1400380bf
lea rbp, [rsi + 6]
lea rcx, [rsi + 4]
mov eax, dword [rdi + 0x38]
test eax, eax
je 0x1400380d1
mov dword [rbp], eax
add rbp, 4
mov rdx, rbp
sub rdx, rcx
xor r8d, r8d
call fcn.140050920
mov byte [rbp], ah
mov dword [rdi + 0x5c], 1
sub rbp, rsi
add rbp, 1
mov rax, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rdi + 0x78], 0
mov rbp, 0xfffffffffffffff7
jmp 0x1400380f0