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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, qword [0x1400c2800]
xor r14d, r14d
xor bpl, bpl
mov rbx, rdi
mov esi, r14d
mov eax, dword [rdi + 0x1be8]
sub eax, 1
js 0x140049e51
mov r8, qword [rdi + 0x1bf0]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
mov rax, qword [r8]
test rax, rax
je 0x140049e47
test dword [rax + 0xc], 0x8000000
jne 0x140049ed6
sub r8, 0x30
sub rdx, 1
jns 0x140049e32
mov qword [rsp + 0x98], r15
movaps xmmword [rsp + 0x40], xmm6
xorps xmm6, xmm6
cmp qword [rdi + 0x1d40], rsi
je 0x140049ead
cmp qword [rdi + 0x1d38], rsi
jne 0x140049ead
comiss xmm6, dword [rdi + 0x1de0]
movss xmm1, dword [rdi + 0x1d54]
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x1400af4e0]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rdi + 0x1d54], xmm1
jb 0x140049ead
comiss xmm6, xmm1
jb 0x140049ead
mov qword [rdi + 0x1d40], r14
mov r9, qword [rdi + 0x1d38]
mov r15d, 1
test r9, r9
jne 0x140049ee8
mov edx, r15d
lea ecx, [r9 + 3]
call fcn.140047b40
comiss xmm0, xmm6
jbe 0x140049ee8
movzx r8d, dl
jmp 0x140049ef0
mov qword [rdi + 0x1d38], r14
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor r8b, r8b
test r9, r9
jne 0x140049f15
cmp byte [rdi + 0x148], sil
je 0x140049f15
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
js 0x140049f15
call fcn.1400406e0
test al, al
je 0x140049f15
test byte [rdi + 8], r15b
je 0x140049f15
movzx r9d, r15b
jmp 0x140049f18
xor r9b, r9b
test r8b, r8b
jne 0x140049f26
test r9b, r9b
je 0x140049fbd
mov rax, qword [rdi + 0x1c08]
test rax, rax
jne 0x140049f8b
movsxd rcx, dword [rdi + 0x1a40]
lea edx, [rcx - 1]
test edx, edx
js 0x140049fbd
movsxd rax, edx
mov r10, rcx
cmp rax, r10
jge 0x140049fbd
cmp rax, 0xffffffff80000001
je 0x140049fbd
mov r8, qword [rdi + 0x1a48]
mov rcx, qword [r8 + rax*8]
cmp byte [rcx + 0x7e], sil
je 0x140049f76
cmp rcx, qword [rcx + 0x3a8]
jne 0x140049f76
test dword [rcx + 0xc], 0x80000
je 0x140049f7f
dec edx
sub rax, r15
jns 0x140049f46
jmp 0x140049fbd
movsxd rax, edx
mov rax, qword [r8 + rax*8]
test rax, rax
je 0x140049fbd
mov rax, qword [rax + 0x3a8]
xor r9b, r15b
mov qword [rdi + 0x1d40], rax
mov qword [rdi + 0x1d38], rax
movzx eax, r9b
mov byte [rdi + 0x1d58], al
add eax, 3
mov dword [rdi + 0x1c3c], eax
mov qword [rdi + 0x1d50], r14
mov r10, qword [rdi + 0x1d38]
movss xmm0, dword [rdi + 0x18]
mov r8, r10
movss xmm5, dword [0x1400af4a8]
movaps xmmword [rsp + 0x30], xmm7
addss xmm0, dword [rdi + 0x1d50]
movss dword [rdi + 0x1d50], xmm0
test r10, r10
je 0x14004a0c0
cmp dword [rdi + 0x1c3c], 4
jne 0x14004a0c0
subss xmm0, dword [0x1400af460]
divss xmm0, dword [0x1400af454]
comiss xmm6, xmm0
jbe 0x14004a019
movaps xmm1, xmm6
jmp 0x14004a020
movaps xmm1, xmm5
minss xmm1, xmm0
movss xmm7, dword [rdi + 0x1d54]
mov edx, 4
maxss xmm7, xmm1
lea ecx, [rdx + 9]
movss dword [rdi + 0x1d54], xmm7
call fcn.140047b40
comiss xmm0, xmm6
mov r9d, r14d
lea ecx, [rdx + 8]
seta r9b
call fcn.140047b40
comiss xmm0, xmm6
mov ecx, r14d
mov r8, r10
seta cl
sub ecx, r9d
je 0x14004a07d
call fcn.140049ca0
mov r8, qword [rdi + 0x1d38]
movaps xmm7, xmm5
mov dword [rdi + 0x1d54], 0x3f800000
movss xmm0, dword [rdi + 0x358]
comiss xmm0, xmm6
ja 0x14004a0c0
comiss xmm5, xmm7
seta al
and byte [rdi + 0x1d58], al
je 0x14004a0b1
cmp qword [rdi + 0x1c08], rsi
je 0x14004a0b4
movzx ebp, r15b
mov qword [rdi + 0x1d38], r14
jmp 0x14004a13f
mov rsi, r8
mov qword [rdi + 0x1d38], r14
jmp 0x14004a13f
test r8, r8
je 0x14004a13f
cmp dword [rdi + 0x1c3c], 3
jne 0x14004a13f
movss xmm0, dword [rdi + 0x1d50]
subss xmm0, dword [0x1400af460]
divss xmm0, dword [0x1400af454]
comiss xmm6, xmm0
jbe 0x14004a0f0
movaps xmm5, xmm6
jmp 0x14004a0f4
minss xmm5, xmm0
movss xmm0, dword [rdi + 0x1d54]
maxss xmm0, xmm5
movss dword [rdi + 0x1d54], xmm0
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
js 0x14004a134
call fcn.1400406e0
test al, al
je 0x14004a134
cmp byte [rdi + 0x149], sil
mov ecx, 0xffffffff
cmovne ecx, r15d
call fcn.140049ca0
mov r8, qword [rdi + 0x1d38]
cmp byte [rdi + 0x148], sil
cmove rsi, r8
mov edx, r15d
mov ecx, reloc.WS2_32.dll_recv
call fcn.140047b40
comiss xmm0, xmm6
movaps xmm7, xmmword [rsp + 0x30]
jbe 0x14004a15c
mov byte [rdi + 0x1d58], dl
cmp dword [rdi + 0x1ad8], r14d
je 0x14004a172
cmp byte [rdi + 0x1ae5], r14b
je 0x14004a1ff
cmp byte [rdi + 0x1d58], r14b
je 0x14004a1ff
mov edx, 2
lea ecx, [rdx + 0xe]
call fcn.140047b40
comiss xmm0, xmm6
jbe 0x14004a1ff
lea rax, [rdi + 0x3cc]
test rax, rax
jne 0x14004a1a4
lea rax, [rdi + 0x130]
movss xmm0, dword [rax]
movss xmm1, dword [0x1400af548]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x14004a1c5
comiss xmm2, xmm1
jb 0x14004a1c5
movzx ecx, r15b
jmp 0x14004a1c7
xor cl, cl
lea rax, [rdi + 0x130]
test rax, rax
jne 0x14004a1da
lea rax, [rdi + 0x130]
movss xmm0, dword [rax]
comiss xmm0, xmm1
movss xmm2, dword [rax + 4]
jb 0x14004a1f3
comiss xmm2, xmm1
jb 0x14004a1f3
movzx eax, r15b
jmp 0x14004a1f5
xor al, al
cmp al, cl
movzx ebp, bpl
cmove ebp, r15d
mov r11, qword [rdi + 0x1d38]
test r11, r11
je 0x14004a30b
test byte [r11 + 0xc], 4
jne 0x14004a30b
mov eax, dword [rdi + 0x1c3c]
cmp eax, 3
jne 0x14004a23f
cmp byte [rdi + 0x149], r14b
jne 0x14004a30b
mov edx, r15d
lea rcx, [rsp + 0x88]
jmp 0x14004a252
cmp eax, 4
jne 0x14004a30b
mov edx, eax
lea rcx, [rsp + 0x90]
movaps xmm3, xmm6
movss dword [rsp + 0x20], xmm6
call fcn.140047cc0
movss xmm4, dword [rax]
ucomiss xmm4, xmm6
movss xmm3, dword [rax + 4]
jp 0x14004a27b
jne 0x14004a27b
ucomiss xmm3, xmm6
jp 0x14004a27b
je 0x14004a30b
movss xmm1, dword [rdi + 0xc0]
lea rdx, [rsp + 0x80]
movss xmm0, dword [rdi + 0x18]
mov r8d, r15d
minss xmm1, dword [rdi + 0xc4]
mov rcx, qword [r11 + 0x3a8]
mulss xmm0, dword [0x1400af518]
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm4, xmm2
mulss xmm3, xmm2
addss xmm4, dword [rcx + 0x10]
addss xmm3, dword [rcx + 0x14]
movss dword [rsp + 0x80], xmm4
movss dword [rsp + 0x84], xmm3
call fcn.140045810
mov rax, qword [rdi + 0x1d38]
mov byte [rdi + 0x1c5f], r8b
test dword [rax + 0xc], 0x100
jne 0x14004a30b
comiss xmm6, dword [rdi + 0x3024]
jb 0x14004a30b
mov eax, dword [rdi + 0x1c]
mov dword [rdi + 0x3024], eax
movaps xmm6, xmmword [rsp + 0x40]
test rsi, rsi
je 0x14004a3e0
mov rax, qword [rdi + 0x1c08]
test rax, rax
je 0x14004a332
cmp rsi, qword [rax + 0x3a8]
je 0x14004a3d9
mov ecx, dword [rdi + 0x1ad8]
test ecx, ecx
setne al
mov byte [rdi + 0x1ae4], al
test ecx, ecx
je 0x14004a356
mov dword [rdi + 0x1ae0], r14d
mov word [rdi + 0x1ae6], r14w
mov dword [rdi + 0x1ad8], r14d
mov byte [rdi + 0x1ae5], r14b
mov qword [rdi + 0x1b08], r14
mov byte [rdi + 0x1ae8], r14b
mov qword [rdi + 0x1aec], r14
mov qword [rdi + 0x1af8], r14
mov word [rdi + 0x1c5e], 0x100
mov rax, qword [rsi + 0x3c0]
test rax, rax
je 0x14004a39d
cmp byte [rax + 0x7f], r14b
cmovne rsi, rax
xor edx, edx
mov rcx, rsi
call fcn.1400468d0
mov rcx, rsi
call fcn.140045460
cmp dword [rsi + 0x3c8], r14d
jne 0x14004a3c2
xor edx, edx
mov rcx, rsi
call fcn.140047970
cmp dword [rsi + 0x144], 2
jne 0x14004a3d2
mov dword [rdi + 0x1c54], r15d
mov rdi, qword [0x1400c2800]
mov qword [rbx + 0x1d38], r14
mov r15, qword [rsp + 0x98]
test bpl, bpl
je 0x14004a497
mov rsi, qword [rbx + 0x1c08]
test rsi, rsi
je 0x14004a497
lea rcx, [rsi + 0x3a0]
cmp qword [rcx], r14
je 0x14004a437
nop dword [rax]
test byte [rsi + 0x144], 2
jne 0x14004a437
mov eax, dword [rsi + 0xc]
and eax, 0x15000000
cmp eax, 0x1000000
jne 0x14004a437
mov rsi, qword [rcx]
lea rcx, [rsi + 0x3a0]
cmp qword [rcx], r14
jne 0x14004a410
mov rbp, qword [rbx + 0x1c08]
cmp rsi, rbp
je 0x14004a459
mov rcx, rsi
call fcn.140045460
mov rdi, qword [0x1400c2800]
mov qword [rsi + 0x3c0], rbp
mov rax, qword [rbx + 0x1c08]
mov word [rbx + 0x1c5e], 0x100
test byte [rax + 0x144], 2
mov rax, rdi
je 0x14004a4a2
mov ecx, dword [rbx + 0x1c54]
xor ecx, 1
mov dword [rdi + 0x1c54], ecx
je 0x14004a4ac
mov r8, qword [rdi + 0x1c08]
mov dl, 1
mov rcx, r8
call fcn.140047970
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, r14d
mov dword [rdi + 0x1c54], r14d
mov r8, qword [rax + 0x1c08]
mov rdx, qword [r8 + 0x3c0]
test rdx, rdx
je 0x14004a4c5
cmp byte [rdx + 0x7f], r14b
jne 0x14004a4c8
mov rdx, r8
mov qword [rax + 0x1c08], rdx
mov r8, rdx
test ecx, ecx
jne 0x14004a48d
mov ecx, dword [rdx + 0x3c8]
test ecx, ecx
je 0x14004a48d
mov dword [rdi + 0x1c10], ecx
mov dword [rdi + 0x1c14], r14d
mov dword [rdx + 0x3c8], ecx
movups xmm0, xmmword [rdx + 0x3d0]
mov rax, qword [rax + 0x1c08]
movups xmmword [rax + 0x3d0], xmm0
mov word [rdi + 0x1c5d], 1
mov byte [rdi + 0x1c5f], 1
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret