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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbx
push rbp
push rdi
push r12
push r14
sub rsp, 0x50
mov ebp, dword [rsp + 0xa0]
xor edi, edi
mov r14, rdx
mov eax, edi
mov edx, dword [rdx]
mov r12, r9
mov qword [r11 + 0x10], rax
mov rbx, rcx
test edx, edx
js 0x14003c6b8
cmp edx, ebp
jge 0x14003c6b8
lea r8, [r11 + 0x10]
mov rcx, r9
call fcn.14003c650
mov rax, qword [rsp + 0x88]
movd xmm2, ebp
xor r9d, r9d
cvtdq2ps xmm2, xmm2
mov rdx, rax
mov byte [rsp + 0x20], dil
mov rcx, rbx
call fcn.14003ba60
test al, al
jne 0x14003c6e2
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rbx, qword [0x1400ebd90]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x98], r15
xor r15b, r15b
mov dword [rsp + 0x38], 0xe
mov rax, qword [rbx + 0x3ed0]
lea rcx, [rbx + 0x4828]
movss xmm1, dword [rax + 0x18]
movss xmm0, dword [rax + 0x7c]
movss xmm5, dword [rax + 0xf8]
movss xmm4, dword [rax + 0xfc]
subss xmm5, xmm1
movss xmm3, dword [rax + 0x1c]
movss xmm2, dword [rax + 0x80]
subss xmm4, xmm3
mov byte [rax + 0xb0], 1
mov rax, qword [rbx + 0x3ed0]
addss xmm5, xmm0
xorps xmm0, xmm0
addss xmm4, xmm2
movss xmm1, dword [rax + 0x18]
subss xmm1, dword [rax + 0x7c]
addss xmm5, xmm0
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [rax + 0x80]
addss xmm4, dword [0x14006fdd0]
mov byte [rax + 0x139], 1
addss xmm5, xmm1
addss xmm0, xmm4
movss dword [rax + 0xf8], xmm5
movss dword [rax + 0xfc], xmm0
movss xmm1, dword [rbx + 0x382c]
movss xmm0, dword [rbx + 0x3830]
movss dword [rsp + 0x3c], xmm1
movss dword [rsp + 0x40], xmm0
call fcn.140020c20
mov dword [rbx + 0x382c], edi
mov dword [rbx + 0x3830], 0x40400000
test ebp, ebp
jle 0x14003c935
mov rcx, qword [0x1400ebd90]
mov qword [rsp + 0x80], rsi
mov rbx, qword [rcx + 0x3ed0]
mov edx, edi
mov rcx, rbx
call fcn.14000cc50
add rbx, 0xe8
mov esi, eax
mov ecx, dword [rbx]
mov r8d, dword [rbx + 4]
cmp ecx, r8d
jne 0x14003c82e
inc ecx
test r8d, r8d
je 0x14003c81a
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14003c81f
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1400216e0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], esi
mov rcx, qword [0x1400eee20]
inc dword [rbx]
mov rsi, rcx
mov rbx, qword [0x1400ebd90]
mov qword [rsp + 0x90], rcx
test rcx, rcx
jne 0x14003c87a
mov rcx, qword [rbx + 0x68]
mov rsi, rcx
test rcx, rcx
jne 0x14003c872
mov rax, qword [rbx + 0x58]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx]
mov rsi, rcx
mov qword [rsp + 0x90], rcx
call fcn.140015a90
lea rcx, [rbx + 0x4838]
lea rdx, [rsp + 0x90]
call fcn.140020f80
mov rdx, qword [rsi + 0x40]
mov rcx, qword [rbx + 0x3ed0]
mov rdx, qword [rdx + 8]
mov rcx, qword [rcx + 0x290]
call fcn.1400297f0
mov ebx, dword [r14]
lea r8, [rsp + 0x30]
cmp edi, ebx
mov edx, edi
mov rcx, r12
sete sil
call fcn.14003c650
test al, al
jne 0x14003c8d8
lea rcx, str.Unknown_item
mov qword [rsp + 0x30], rcx
jmp 0x14003c8dd
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
xor r8d, r8d
movzx edx, sil
call fcn.1400471e0
test al, al
je 0x14003c901
mov r15b, 1
mov dword [r14], edi
cmp edi, ebx
jne 0x14003c90a
call fcn.140016080
call fcn.140015b50
mov rcx, qword [0x1400ebd90]
inc edi
mov rax, qword [rcx + 0x3ed0]
dec dword [rax + 0xe8]
cmp edi, ebp
jl 0x14003c7e1
mov rsi, qword [rsp + 0x80]
mov ecx, 1
call fcn.14000a8f0
call fcn.140015630
test r15b, r15b
je 0x14003c960
mov rcx, qword [0x1400ebd90]
or dword [rcx + 0x4774], 4
mov word [rcx + 0x3f40], 0x101
movzx eax, r15b
mov r15, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rbp
pop rbx
ret