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

Disassembly:
mov r11, rsp
push rbx
push rdi
push r13
push r15
sub rsp, 0x98
mov rax, qword [0x14005f040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r11 + 0x20], rbp
mov r13d, 1
mov qword [r11 - 0x28], rsi
mov rbx, rdx
mov qword [r11 - 0x30], r12
lea rdx, [0x140000000]
mov qword [r11 - 0x38], r14
mov r15d, r8d
movaps xmmword [rsp + 0x70], xmm6
mov rdi, rcx
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [r11 - 0x68], xmm8
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], r13d
nop
cmp r15d, 0x600000
jg 0x1400405ad
je 0x1400409e4
lea eax, [r15 - 0x200000]
cmp eax, 0xf
ja case.0x1400405c9.6291466
cdqe
mov ecx, dword [rdx + rax*4 + 0x41340]
add rcx, rdx
jmp rcx
lea eax, [r15 - 0x600001]
cmp eax, 0xe
ja case.0x1400405c9.6291466
cdqe
mov ecx, dword [rdx + rax*4 + 0x41380]
add rcx, rdx
jmp rcx
mov eax, r15d
btr eax, 0x16
cmp eax, 0x20000f
je 0x140040a44
cmp byte [rbx + 0x17], 0
je 0x140040a4d
and r15d, 0x400000
or r15d, 0x200001
mov dword [rsp + 0x40], r15d
jmp 0x140040580
mov eax, r15d
btr eax, 0x16
cmp eax, 0x20000e
je 0x140040c36
cmp byte [rbx + 0x17], 0
je 0x140040c3a
and r15d, 0x400000
bts r15d, 0x15
mov dword [rsp + 0x40], r15d
jmp 0x140040580
mov rdx, rbx
mov rcx, rdi
call fcn.140041640
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
lea rbp, [rbx + 0x20]
movsx rax, word [rbp + 0xe00]
cmp eax, 0x63
je 0x14004104e
movsx r8, word [rbp + 0xdfe]
add rax, rax
shl r8, 4
add r8, rbp
movups xmm1, xmmword [rbp + rax*8]
mov dword [r8 + 0xc], 0xffffffff
movq r14, xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
mov rax, r14
movd r11d, xmm0
shr rax, 0x20
mov dword [r8 + 8], eax
mov dword [r8 + 4], r11d
mov dword [r8], r14d
test r11d, r11d
je 0x140040708
mov ecx, dword [rbp + 0xe04]
xor esi, esi
lea eax, [rcx + r11]
cmp eax, dword [rbp + 0xe08]
jle 0x1400406ba
mov qword [r8 + 4], rsi
jmp 0x1400406fa
mov dword [r8 + 0xc], ecx
add dword [rbp + 0xe04], r11d
cmp dword [r8 + 4], esi
jle 0x1400406fa
nop dword [rax + rax]
mov eax, dword [r8]
mov ecx, dword [r8 + 0xc]
add eax, esi
mov r9, qword [rdi + 0x18]
add ecx, esi
movsxd r10, eax
inc esi
movsxd rdx, ecx
movzx eax, word [r9 + r10*2]
mov word [rbp + rdx*2 + 0x630], ax
cmp esi, dword [r8 + 4]
jl 0x1400406d0
mov r8d, r11d
mov edx, r14d
mov rcx, rdi
call fcn.14003fdd0
movdqa xmm0, xmm1
psrldq xmm0, 4
movd esi, xmm0
test esi, esi
je 0x140040744
psrldq xmm1, 0xc
lea r8, [rbp + 0x630]
movd eax, xmm1
mov r9d, esi
mov edx, r14d
movsxd rcx, eax
lea r8, [r8 + rcx*2]
mov rcx, rdi
call fcn.14003fea0
add dword [rbp + 0xe08], esi
lea eax, [r14 + rsi]
mov dword [rbx], eax
inc word [rbp + 0xdfe]
inc word [rbp + 0xe00]
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
cmp eax, ecx
je 0x140040780
jle 0x140040772
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov eax, dword [rbx]
test eax, eax
jle 0x14004104e
dec eax
mov byte [rbx + 0x16], 0
mov dword [rbx], eax
jmp 0x1400412f4
mov eax, dword [rbx + 4]
mov r8d, dword [rbx + 8]
cmp eax, r8d
je 0x1400407d8
jle 0x1400407b1
mov dword [rbx + 8], eax
mov edx, r8d
mov dword [rbx + 4], r8d
jmp 0x1400407b6
mov edx, eax
mov eax, r8d
mov ecx, dword [rdi + 4]
cmp edx, ecx
cmovg edx, ecx
cmp eax, ecx
jle 0x1400407c7
mov dword [rbx + 8], ecx
mov eax, ecx
cmp edx, eax
jne 0x1400407cd
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0x16], 0
jmp 0x1400407dc
inc dword [rbx]
mov eax, dword [rbx]
mov ecx, dword [rdi + 4]
cmp eax, ecx
jle 0x14004104e
mov dword [rbx], ecx
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
cmp eax, ecx
je 0x140040811
jle 0x140040803
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov edx, dword [rbx]
mov rcx, rdi
call fcn.14003fbf0
mov dword [rbx], eax
mov ecx, dword [rdi + 4]
cmp eax, ecx
jle 0x1400412f4
mov dword [rbx], ecx
jmp 0x1400412f4
mov eax, dword [rbx + 4]
mov r8d, dword [rbx + 8]
cmp eax, r8d
je 0x140040873
jle 0x140040849
mov dword [rbx + 8], eax
mov edx, r8d
mov dword [rbx + 4], r8d
jmp 0x14004084e
mov edx, eax
mov eax, r8d
mov ecx, dword [rdi + 4]
cmp edx, ecx
cmovg edx, ecx
cmp eax, ecx
jle 0x14004085f
mov dword [rbx + 8], ecx
mov eax, ecx
cmp edx, eax
jne 0x140040865
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov edx, dword [rbx]
mov rcx, rdi
call fcn.14003fcd0
mov dword [rbx], eax
mov ecx, dword [rdi + 4]
cmp eax, ecx
jle 0x1400412f4
mov dword [rbx], ecx
jmp 0x1400412f4
xor esi, esi
mov qword [rbx + 4], rsi
mov dword [rbx], esi
jmp 0x1400412f0
mov eax, dword [rdi + 4]
xor esi, esi
mov qword [rbx + 4], rsi
mov dword [rbx], eax
jmp 0x1400412f0
mov r8d, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov ecx, dword [rdi + 4]
cmp r8d, eax
je 0x1400408e4
mov edx, r8d
cmp r8d, ecx
jle 0x1400408ca
mov dword [rbx + 4], ecx
mov edx, ecx
mov r9d, eax
cmp eax, ecx
jle 0x1400408d7
mov dword [rbx + 8], ecx
mov r9d, ecx
mov r8d, edx
mov eax, r9d
cmp edx, r9d
jne 0x1400408e4
mov dword [rbx], edx
mov edx, dword [rbx]
cmp edx, ecx
jle 0x1400408ee
mov dword [rbx], ecx
mov edx, ecx
cmp r8d, eax
je 0x140040906
mov edx, r8d
jle 0x1400408fd
mov dword [rbx + 4], eax
mov edx, eax
mov dword [rbx], edx
mov dword [rbx + 8], edx
mov byte [rbx + 0x16], 0
cmp byte [rbx + 0x17], 0
je 0x140040919
xor esi, esi
mov dword [rbx], esi
mov byte [rbx + 0x16], sil
jmp 0x1400412f4
test edx, edx
jle 0x14004104e
mov rax, qword [rdi + 0x18]
mov ecx, edx
cmp word [rax + rcx*2 - 2], 0xa
je 0x14004104e
dec edx
mov dword [rbx], edx
test edx, edx
jg 0x140040921
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov r8d, dword [rdi + 4]
cmp ecx, eax
je 0x14004097b
mov edx, ecx
cmp ecx, r8d
jle 0x140040960
mov dword [rbx + 4], r8d
mov edx, r8d
mov r9d, eax
cmp eax, r8d
jle 0x14004096f
mov dword [rbx + 8], r8d
mov r9d, r8d
mov ecx, edx
mov eax, r9d
cmp edx, r9d
jne 0x14004097b
mov dword [rbx], edx
mov edx, dword [rbx]
cmp edx, r8d
jle 0x140040988
mov dword [rbx], r8d
mov edx, r8d
cmp ecx, eax
je 0x14004099e
mov edx, ecx
jle 0x140040995
mov dword [rbx + 4], eax
mov edx, eax
mov dword [rbx], edx
mov dword [rbx + 8], edx
mov byte [rbx + 0x16], 0
cmp byte [rbx + 0x17], 0
je 0x1400409b0
mov dword [rbx], r8d
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
cmp edx, r8d
jge 0x14004104e
nop dword [rax]
mov rax, qword [rdi + 0x18]
movsxd rcx, edx
cmp word [rax + rcx*2], 0xa
je 0x14004104e
inc edx
mov dword [rbx], edx
cmp edx, r8d
jl 0x1400409c0
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 8]
mov ecx, dword [rdi + 4]
cmp r8d, edx
je 0x140040a1a
mov eax, r8d
cmp r8d, ecx
jle 0x140040a00
mov dword [rbx + 4], ecx
mov eax, ecx
mov r9d, edx
cmp edx, ecx
jle 0x140040a0d
mov dword [rbx + 8], ecx
mov r9d, ecx
mov r8d, eax
mov edx, r9d
cmp eax, r9d
jne 0x140040a1a
mov dword [rbx], eax
mov eax, dword [rbx]
cmp eax, ecx
cmovg eax, ecx
cmp r8d, edx
jne 0x140040a2e
mov dword [rbx + 8], eax
mov dword [rbx + 4], eax
jmp 0x140040a30
mov eax, edx
test eax, eax
jle 0x140040a39
dec eax
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov ebp, dword [rbx + 0x10]
mov dword [rsp + 0x20], ebp
jmp 0x140040a50
mov ebp, r13d
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
bt r15d, 0x16
jae 0x140040af4
cmp ecx, eax
jne 0x140040aed
mov ecx, dword [rbx]
mov eax, ecx
mov dword [rbx + 8], ecx
mov dword [rbx + 4], ecx
mov edx, dword [rdi + 4]
cmp ecx, eax
je 0x140040a92
cmp ecx, edx
jle 0x140040a83
mov dword [rbx + 4], edx
mov ecx, edx
cmp eax, edx
jle 0x140040a8c
mov dword [rbx + 8], edx
mov eax, edx
cmp ecx, eax
jne 0x140040a92
mov dword [rbx], ecx
mov r8d, dword [rbx]
cmp r8d, edx
jle 0x140040a9f
mov dword [rbx], edx
mov r8d, edx
movzx r9d, byte [rbx + 0x17]
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400401d0
xor esi, esi
mov r13d, esi
test ebp, ebp
jle 0x1400412f4
movss xmm8, dword [rsp + 0x28]
mov rbp, qword [0x14005f9b0]
movss xmm7, dword [0x1400564a8]
mov r15d, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x34]
nop
cmp byte [rbx + 0x16], sil
je 0x140040b32
movss xmm6, dword [rbx + 0x1c]
jmp 0x140040b36
mov dword [rbx], eax
jmp 0x140040a73
cmp ecx, eax
je 0x140040a73
mov edx, ecx
jle 0x140040b0a
mov edx, eax
mov dword [rbx + 4], eax
mov eax, ecx
mov dword [rbx + 8], ecx
mov ecx, dword [rdi + 4]
cmp edx, ecx
cmovg edx, ecx
cmp eax, ecx
jle 0x140040b1b
mov dword [rbx + 8], ecx
mov eax, ecx
cmp edx, eax
jne 0x140040b21
mov dword [rbx], edx
mov dword [rbx], eax
mov dword [rbx + 4], eax
mov byte [rbx + 0x16], 0
mov edx, dword [rdi + 4]
jmp 0x140040a92
movaps xmm6, xmm8
lea r8d, [r15 + r12]
test r15d, r15d
je 0x1400412f4
mov rax, qword [rdi + 0x18]
movsxd r14, r8d
cmp word [rax + r14*2 - 2], 0xa
jne 0x1400412f4
mov rdx, rdi
mov dword [rbx], r8d
lea rcx, [rsp + 0x28]
call fcn.14003fb10
mov r10d, dword [rsp + 0x3c]
mov r9d, esi
movss xmm2, dword [rsp + 0x28]
test r10d, r10d
jle 0x140040bd8
lea r8, [r14 + r14]
nop
mov rax, qword [rdi + 0x18]
movzx ecx, word [r8 + rax]
cmp ecx, 0xa
je 0x140040bd8
mov rdx, qword [rbp + 0x1a90]
cmp ecx, dword [rdx]
jge 0x140040ba4
mov rax, qword [rdx + 8]
movss xmm1, dword [rax + rcx*4]
jmp 0x140040ba9
movss xmm1, dword [rdx + 0x10]
movss xmm0, dword [rbp + 0x1a98]
divss xmm0, dword [rdx + 0x14]
mulss xmm0, xmm1
ucomiss xmm0, xmm7
jp 0x140040bc1
je 0x140040bd8
addss xmm2, xmm0
comiss xmm2, xmm6
ja 0x140040bd8
inc dword [rbx]
inc r9d
add r8, 2
cmp r9d, r10d
jl 0x140040b80
mov ecx, dword [rbx + 4]
mov edx, dword [rbx + 8]
mov eax, dword [rdi + 4]
cmp ecx, edx
je 0x140040bfd
cmp ecx, eax
jle 0x140040bee
mov dword [rbx + 4], eax
mov ecx, eax
cmp edx, eax
jle 0x140040bf7
mov dword [rbx + 8], eax
mov edx, eax
cmp ecx, edx
jne 0x140040bfd
mov dword [rbx], ecx
mov ecx, dword [rbx]
cmp ecx, eax
jle 0x140040c07
mov dword [rbx], eax
mov ecx, eax
test dword [rsp + 0x40], 0x400000
movss dword [rbx + 0x1c], xmm6
mov byte [rbx + 0x16], 1
je 0x140040c1d
mov dword [rbx + 8], ecx
add r12d, r15d
inc r13d
mov r15d, r10d
cmp r13d, dword [rsp + 0x20]
jl 0x140040ae0
jmp 0x1400412f4
mov r13d, dword [rbx + 0x10]
mov eax, dword [rbx + 4]
mov ecx, dword [rbx + 8]
bt r15d, 0x16
jae 0x140040cd8
cmp eax, ecx
jne 0x140040cd4
mov eax, dword [rbx]
mov ecx, eax
mov dword [rbx + 8], eax
mov dword [rbx + 4], eax
mov edx, dword [rdi + 4]
cmp eax, ecx
je 0x140040c7c
cmp eax, edx
jle 0x140040c6d
mov dword [rbx + 4], edx
mov eax, edx
cmp ecx, edx
jle 0x140040c76
mov dword [rbx + 8], edx
mov ecx, edx
cmp eax, ecx
jne 0x140040c7c
mov dword [rbx], eax
mov r8d, dword [rbx]
cmp r8d, edx
jle 0x140040c89
mov dword [rbx], edx
mov r8d, edx
movzx r9d, byte [rbx + 0x17]
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400401d0
xor esi, esi
mov r12d, esi
test r13d, r13d
jle 0x1400412f4
movss xmm8, dword [rsp + 0x28]
mov r14, qword [0x14005f9b0]
movss xmm7, dword [0x1400564a8]
mov ebp, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x34]
cmp byte [rbx + 0x16], sil
je 0x140040cf1
movss xmm6, dword [rbx + 0x1c]
jmp 0x140040cf5
mov dword [rbx], ecx
jmp 0x140040c5d
cmp eax, ecx
je 0x140040c5d
jle 0x140040ce3
mov eax, ecx
mov dword [rbx + 4], ecx
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov byte [rbx + 0x16], 0
mov edx, dword [rdi + 4]
jmp 0x140040c7c
movaps xmm6, xmm8
cmp ebp, eax
je 0x1400412f4
mov r8d, ebp
mov dword [rbx], ebp
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.14003fb10
mov r10d, dword [rsp + 0x3c]
mov r8d, esi
movss xmm2, dword [rsp + 0x28]
test r10d, r10d
jle 0x140040d8f
nop dword [rax]
nop word [rax + rax]
lea eax, [r8 + rbp]
movsxd rcx, eax
mov rax, qword [rdi + 0x18]
movzx r9d, word [rax + rcx*2]
cmp r9d, 0xa
je 0x140040d8f
mov rdx, qword [r14 + 0x1a90]
cmp r9d, dword [rdx]
jge 0x140040d5e
mov rax, qword [rdx + 8]
movss xmm1, dword [rax + r9*4]
jmp 0x140040d63
movss xmm1, dword [rdx + 0x10]
movss xmm0, dword [r14 + 0x1a98]
divss xmm0, dword [rdx + 0x14]
mulss xmm0, xmm1
ucomiss xmm0, xmm7
jp 0x140040d7c
je 0x140040d8f
addss xmm2, xmm0
comiss xmm2, xmm6
ja 0x140040d8f
inc dword [rbx]
inc r8d
cmp r8d, r10d
jl 0x140040d30
mov ecx, dword [rbx + 4]
mov edx, dword [rbx + 8]
mov eax, dword [rdi + 4]
cmp ecx, edx
je 0x140040db4
cmp ecx, eax
jle 0x140040da5
mov dword [rbx + 4], eax
mov ecx, eax
cmp edx, eax
jle 0x140040dae
mov dword [rbx + 8], eax
mov edx, eax
cmp ecx, edx
jne 0x140040db4
mov dword [rbx], ecx
mov ecx, dword [rbx]
cmp ecx, eax
jle 0x140040dbe
mov dword [rbx], eax
mov ecx, eax
movss dword [rbx + 0x1c], xmm6
mov byte [rbx + 0x16], 1
bt r15d, 0x16
jae 0x140040dd1
mov dword [rbx + 8], ecx
test ebp, ebp
jle 0x140040e07
lea r8d, [rbp - 1]
test r8d, r8d
jle 0x140040e0a
mov rdx, qword [rdi + 0x18]
add rdx, 0xfffffffffffffffe
movsxd rcx, r8d
lea rdx, [rdx + rcx*2]
nop dword [rax]
cmp word [rdx], 0xa
je 0x140040e0a
dec r8d
dec rcx
sub rdx, 2
test rcx, rcx
jg 0x140040df0
jmp 0x140040e0a
mov r8d, esi
inc r12d
mov eax, ebp
mov ebp, r8d
cmp r12d, r13d
jl 0x140040cc7
jmp 0x1400412f4
mov esi, dword [rbx + 4]
cmp esi, dword [rbx + 8]
jne 0x140040e30
mov esi, dword [rbx]
mov dword [rbx + 8], esi
mov dword [rbx + 4], esi
mov edx, dword [rbx]
mov rcx, rdi
call fcn.14003fbf0
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov ecx, dword [rdi + 4]
cmp esi, eax
je 0x140040e62
cmp esi, ecx
jle 0x140040e4f
mov dword [rbx + 4], ecx
mov esi, ecx
mov edx, eax
cmp eax, ecx
jle 0x140040e5a
mov dword [rbx + 8], ecx
mov edx, ecx
cmp esi, edx
jne 0x140040e62
mov dword [rbx], esi
mov eax, esi
cmp eax, ecx
jle 0x1400412f4
mov dword [rbx], ecx
jmp 0x1400412f4
mov esi, dword [rbx + 4]
cmp esi, dword [rbx + 8]
jne 0x140040e81
mov esi, dword [rbx]
mov dword [rbx + 8], esi
mov dword [rbx + 4], esi
mov edx, dword [rbx]
mov rcx, rdi
call fcn.14003fcd0
mov dword [rbx], eax
mov dword [rbx + 8], eax
mov ecx, dword [rdi + 4]
cmp esi, eax
je 0x140040eb3
cmp esi, ecx
jle 0x140040ea0
mov dword [rbx + 4], ecx
mov esi, ecx
mov edx, eax
cmp eax, ecx
jle 0x140040eab
mov dword [rbx + 8], ecx
mov edx, ecx
cmp esi, edx
jne 0x140040eb3
mov dword [rbx], esi
mov eax, esi
cmp eax, ecx
jle 0x1400412f4
mov dword [rbx], ecx
jmp 0x1400412f4
mov edx, dword [rbx + 4]
mov eax, dword [rbx + 8]
cmp edx, eax
jne 0x140040ed5
mov eax, dword [rbx]
mov edx, eax
mov dword [rbx + 4], eax
jmp 0x140040ed7
mov dword [rbx], eax
inc eax
mov dword [rbx + 8], eax
mov ecx, dword [rdi + 4]
cmp edx, eax
je 0x140040f03
cmp edx, ecx
jle 0x140040eec
mov dword [rbx + 4], ecx
mov edx, ecx
mov r8d, eax
cmp eax, ecx
jle 0x140040ef9
mov dword [rbx + 8], ecx
mov r8d, ecx
cmp edx, r8d
mov eax, r8d
cmove eax, r8d
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov eax, dword [rbx + 4]
mov r8d, dword [rbx + 8]
cmp eax, r8d
je 0x140040f8a
mov ecx, dword [rdi + 4]
cmp eax, ecx
jle 0x140040f26
mov dword [rbx + 4], ecx
mov eax, ecx
cmp r8d, ecx
jle 0x140040f31
mov dword [rbx + 8], ecx
mov r8d, ecx
cmp eax, r8d
jne 0x140040f38
mov dword [rbx], eax
cmp dword [rbx], ecx
jle 0x140040f3e
mov dword [rbx], ecx
cmp eax, r8d
je 0x14004104e
mov rdx, rbx
mov rcx, rdi
jge 0x140040f6e
sub r8d, eax
mov r9d, r8d
mov r8d, eax
call fcn.1400403a0
mov eax, dword [rbx + 4]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
sub eax, r8d
mov r9d, eax
call fcn.1400403a0
mov eax, dword [rbx + 8]
mov dword [rbx + 4], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov r8d, dword [rbx]
cmp r8d, dword [rdi + 4]
jge 0x14004104e
mov r9d, r13d
mov rdx, rbx
mov rcx, rdi
call fcn.1400403a0
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx + 8]
mov eax, dword [rdi + 4]
cmp ecx, r8d
je 0x140041029
cmp ecx, eax
jle 0x140040fc6
mov dword [rbx + 4], eax
mov ecx, eax
cmp r8d, eax
jle 0x140040fd1
mov dword [rbx + 8], eax
mov r8d, eax
cmp ecx, r8d
jne 0x140040fd8
mov dword [rbx], ecx
cmp dword [rbx], eax
jle 0x140040fde
mov dword [rbx], eax
cmp ecx, r8d
je 0x14004104e
mov rdx, rbx
jge 0x14004100a
sub r8d, ecx
mov r9d, r8d
mov r8d, ecx
mov rcx, rdi
call fcn.1400403a0
mov eax, dword [rbx + 4]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
sub ecx, r8d
mov r9d, ecx
mov rcx, rdi
call fcn.1400403a0
mov eax, dword [rbx + 8]
mov dword [rbx + 4], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov r8d, dword [rbx]
cmp r8d, eax
jle 0x140041036
mov dword [rbx], eax
mov r8d, eax
test r8d, r8d
jle 0x14004104e
dec r8d
mov r9d, r13d
mov rdx, rbx
mov rcx, rdi
call fcn.1400403a0
dec dword [rbx]
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x140041064
mov eax, dword [rbx]
mov dword [rbx + 4], eax
xor esi, esi
mov dword [rbx + 8], esi
mov dword [rbx], esi
jmp 0x1400412f0
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x140041091
mov eax, dword [rbx]
mov dword [rbx + 8], eax
mov dword [rbx + 4], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 8], eax
mov dword [rbx], eax
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov r8d, dword [rbx + 4]
mov ecx, dword [rbx + 8]
mov eax, dword [rdi + 4]
cmp r8d, ecx
je 0x1400410da
mov edx, r8d
cmp r8d, eax
jle 0x1400410c0
mov dword [rbx + 4], eax
mov edx, eax
mov r9d, ecx
cmp ecx, eax
jle 0x1400410cd
mov dword [rbx + 8], eax
mov r9d, eax
mov r8d, edx
mov ecx, r9d
cmp edx, r9d
jne 0x1400410da
mov dword [rbx], edx
mov edx, dword [rbx]
mov esi, edx
cmp edx, eax
jle 0x1400410e8
mov dword [rbx], eax
mov edx, eax
mov esi, eax
cmp r8d, ecx
jne 0x1400410f5
mov dword [rbx + 8], edx
mov dword [rbx + 4], edx
jmp 0x1400410fb
mov dword [rbx], ecx
mov edx, ecx
mov esi, ecx
cmp byte [rbx + 0x17], 0
je 0x140041111
xor esi, esi
mov dword [rbx], esi
mov dword [rbx + 8], esi
mov byte [rbx + 0x16], sil
jmp 0x1400412f4
test edx, edx
jle 0x140041139
nop word [rax + rax]
mov rax, qword [rdi + 0x18]
mov ecx, edx
cmp word [rax + rcx*2 - 2], 0xa
je 0x140041139
lea esi, [rdx - 1]
mov dword [rbx], esi
mov edx, esi
test esi, esi
jg 0x140041120
mov dword [rbx + 8], esi
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov ecx, dword [rbx + 4]
mov eax, dword [rbx + 8]
mov r9d, dword [rdi + 4]
cmp ecx, eax
je 0x14004117c
mov edx, ecx
cmp ecx, r9d
jle 0x140041161
mov dword [rbx + 4], r9d
mov edx, r9d
mov r8d, eax
cmp eax, r9d
jle 0x140041170
mov dword [rbx + 8], r9d
mov r8d, r9d
mov ecx, edx
mov eax, r8d
cmp edx, r8d
jne 0x14004117c
mov dword [rbx], edx
mov r8d, dword [rbx]
mov edx, r8d
cmp r8d, r9d
jle 0x140041190
mov dword [rbx], r9d
mov r8d, r9d
mov edx, r9d
cmp ecx, eax
jne 0x14004119e
mov dword [rbx + 8], r8d
mov dword [rbx + 4], r8d
jmp 0x1400411a5
mov dword [rbx], eax
mov r8d, eax
mov edx, eax
cmp byte [rbx + 0x17], 0
je 0x1400411bd
mov edx, r9d
mov dword [rbx], r9d
mov dword [rbx + 8], edx
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
cmp r8d, r9d
jge 0x1400411de
mov rax, qword [rdi + 0x18]
movsxd rcx, r8d
cmp word [rax + rcx*2], 0xa
je 0x1400411de
lea edx, [r8 + 1]
mov dword [rbx], edx
mov r8d, edx
cmp edx, r9d
jl 0x1400411c2
mov dword [rbx + 8], edx
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
xor esi, esi
cmp r15d, 0x200000
cmovge r15d, esi
test r15d, r15d
jle 0x1400412f4
mov word [rsp + 0x40], r15w
cmp r15d, 0xa
jne 0x140041216
cmp byte [rbx + 0x17], sil
jne 0x1400412f4
cmp byte [rbx + 0xc], sil
je 0x1400412ab
mov eax, dword [rbx + 8]
cmp dword [rbx + 4], eax
jne 0x1400412ab
movsxd rbp, dword [rbx]
cmp ebp, dword [rdi + 4]
jge 0x1400412ab
lea rsi, [rbx + 0x20]
mov edx, r13d
mov rcx, rsi
call fcn.140041470
test rax, rax
je 0x140041280
mov dword [rax], ebp
mov dword [rax + 4], r13d
mov dword [rax + 8], r13d
mov ecx, dword [rsi + 0xe04]
mov dword [rax + 0xc], ecx
inc dword [rsi + 0xe04]
movsxd rdx, dword [rax + 0xc]
add rdx, 0x318
lea rdx, [rsi + rdx*2]
test rdx, rdx
je 0x140041280
mov rax, qword [rdi + 0x18]
movzx ecx, word [rax + rbp*2]
mov word [rdx], cx
mov edx, dword [rbx]
mov r8d, r13d
mov rcx, rdi
call fcn.14003fdd0
mov edx, dword [rbx]
lea r8, [rsp + 0x40]
mov r9d, r13d
mov rcx, rdi
call fcn.14003fea0
test al, al
je 0x1400412f4
inc dword [rbx]
mov byte [rbx + 0x16], 0
jmp 0x1400412f4
mov rdx, rbx
mov rcx, rdi
call fcn.140040480
mov edx, dword [rbx]
lea r8, [rsp + 0x40]
mov r9d, r13d
mov rcx, rdi
call fcn.14003fea0
test al, al
je 0x1400412f4
mov edi, dword [rbx]
lea rcx, [rbx + 0x20]
xor edx, edx
call fcn.140041470
test rax, rax
je 0x1400412ee
mov dword [rax], edi
mov dword [rax + 4], esi
mov dword [rax + 8], r13d
mov dword [rax + 0xc], 0xffffffff
inc dword [rbx]
mov byte [rbx + 0x16], sil
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004f460
add rsp, 0x98
pop r15
pop r13
pop rdi
pop rbx
ret