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

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x230
lea rbp, [rsp + 0xc0]
mov qword [rbp + 0x1a0], rbx
mov qword [rbp + 0x1a8], rsi
mov qword [rbp + 0x1b0], rdi
mov rax, qword [0x1400a5028]
xor rax, rbp
mov qword [rbp + 0x168], rax
mov r15, qword [rcx]
mov rbx, rcx
mov edi, dword [rcx + 0xc]
xor r13d, r13d
mov eax, dword [rcx + 0x10]
mov r10, rdx
mov dword [rbp], eax
mov r12d, r8d
mov r14d, dword [rbx + 0x1c]
mov rsi, r9
mov qword [rbp + 0x68], rcx
mov dword [rbp + 0x70], r13d
mov dword [rbp + 0x58], r13d
mov ecx, dword [r15 + 4]
mov rax, qword [r15 + 0x18]
mov edx, dword [r15 + 8]
mov qword [rbp + 0x118], rax
mov eax, dword [rbx + 0x18]
mov dword [rbp + 4], eax
mov dword [rbp + 0x3c], ecx
mov dword [rbp + 0x34], r8d
mov r8d, dword [rbp + 0x1c0]
imul r8d, dword [rbx + 0x14]
mov qword [rbp + 0x100], r9
lea r9d, [rcx + 0x800]
mov eax, r9d
mov dword [rbp + 0x20], edx
imul eax, edi
mov dword [rbp + 0x24], edi
mov dword [rbp + 0x5c], r13d
mov qword [rbp + 0x50], r15
mov dword [rbp + 0x10], r14d
movsxd rcx, eax
lea eax, [rdi + rdi*2]
shl eax, 3
cdqe
add rax, 0x2e
mov dword [rbp + 0x1c0], r8d
mov dword [rbp + 0x1c], r13d
lea rcx, [rax + rcx*2]
lea r11, [rbx + rcx*2]
lea eax, [rdx + rdx]
mov qword [rbp + 0x28], r11
mov edx, dword [r15 + 0x20]
mov dword [rbp + 0x64], eax
cdqe
lea rcx, [rax + rax]
mov qword [rbp + 0xb0], rcx
lea rax, [rcx + r11]
mov qword [rbp + 0x78], rax
lea rax, [r11 + rcx*2]
mov qword [rbp + 0xa8], rax
test edx, edx
js 0x14002005f
mov edi, dword [r15 + 0x28]
mov ecx, r13d
mov eax, edi
shl eax, cl
cmp eax, r8d
je 0x140020058
inc r13d
cmp r13d, edx
jle 0x140020044
mov edi, dword [rbp + 0x24]
mov dword [rbp + 0x1c], r13d
cmp r13d, edx
jg 0x140020e84
mov ecx, r13d
mov eax, 1
shl eax, cl
mov dword [rbp + 0x60], eax
cmp r12d, 0x4fb
ja 0x140020e84
test rsi, rsi
je 0x140020e84
imul eax, dword [r15 + 0x28]
xor ecx, ecx
movsxd rsi, edi
mov r8d, 0x2000
mov qword [rbp + 0xf0], rsi
mov edx, ecx
mov edi, ecx
mov dword [rbp + 0x14], eax
cdqe
mov qword [rbp + 0xe8], rax
lea rax, [rax*4]
sub r8, rax
nop dword [rax]
movsxd rax, edi
add edi, r9d
add rax, 0x17
lea rcx, [rbx + rax*4]
lea rax, [rcx + r8]
mov qword [rbp + rdx*8 + 0x120], rcx
mov qword [rbp + rdx*8 + 0x108], rax
inc rdx
cmp rdx, rsi
jl 0x1400200c0
mov eax, dword [r15 + 0xc]
cmp r14d, eax
cmovle eax, r14d
mov dword [rbp + 0x98], eax
test r10, r10
je 0x140020e2c
cmp r12d, 1
jle 0x140020e2c
mov r14, qword [rbp + 0x1c8]
xor r9d, r9d
mov eax, r9d
cmp dword [rbx + 0x38], eax
setne al
mov dword [rbx + 0x3c], eax
test r14, r14
jne 0x140020150
mov r8d, r12d
lea rcx, [rbp + 0x130]
mov rdx, r10
call fcn.140021ea0
mov r11, qword [rbp + 0x28]
lea r14, [rbp + 0x130]
mov qword [rbp + 0x1c8], r14
xor r9d, r9d
cmp dword [rbp], 1
movsxd rax, dword [rbp + 0x20]
mov qword [rbp + 0x90], rax
jne 0x140020189
test rax, rax
jle 0x140020189
mov rdx, r11
mov rbx, rax
mov rdi, rax
nop
movzx ecx, word [rdx]
cmp cx, word [rdx + rbx*2]
cmovle cx, word [rdx + rbx*2]
mov word [rdx], cx
lea rdx, [rdx + 2]
sub rdi, 1
jne 0x140020170
mov ecx, dword [r14 + 0x20]
lea esi, [r12*8]
mov edi, dword [r14 + 0x18]
mov r12d, esi
bsr eax, ecx
mov dword [rbp + 0x4c], esi
sub edi, eax
dec edi
cmp edi, esi
jl 0x1400201b3
mov dword [rbp + 0x38], 1
jmp 0x1400201d2
cmp edi, 1
jne 0x1400202d2
lea edx, [rdi + 0xe]
mov rcx, r14
call fcn.140021d70
mov ecx, dword [r14 + 0x20]
mov dword [rbp + 0x38], eax
test eax, eax
je 0x1400201df
bsr eax, ecx
mov edi, esi
inc eax
add eax, esi
mov dword [r14 + 0x18], eax
xor r9d, r9d
cmp dword [rbp + 4], 0
mov esi, 6
mov dword [rbp + 0x30], esi
mov word [rbp + 0x44], r9w
mov dword [rbp + 0x40], r9d
mov dword [rbp + 0x48], r9d
mov qword [rbp + 0xf8], 2
jne 0x1400202a4
lea eax, [rdi + 0x10]
cmp eax, r12d
jg 0x1400202a4
lea edx, [rsi - 5]
mov rcx, r14
call fcn.140021d70
test eax, eax
je 0x140020294
mov edx, esi
mov rcx, r14
call fcn.140021fa0
mov rcx, r14
mov edi, eax
lea edx, [rax + 4]
call fcn.140021dc0
mov ecx, edi
lea edx, [rax - 1]
mov eax, recvfrom
shl eax, cl
mov rcx, r14
add eax, edx
lea edx, [rsi - 3]
mov dword [rbp + 0x40], eax
call fcn.140021dc0
bsr ecx, dword [r14 + 0x20]
mov edi, eax
mov eax, dword [r14 + 0x18]
sub eax, ecx
cmp eax, r12d
jge 0x140020282
lea r8d, [rsi - 4]
mov rcx, r14
lea rdx, [0x140082758]
call fcn.140021e40
mov dword [rbp + 0x48], eax
inc di
mov eax, 0xc00
cwde
movsx ecx, di
imul ecx, eax
mov dword [rbp + 0x44], ecx
bsr eax, dword [r14 + 0x20]
mov edi, dword [r14 + 0x18]
sub edi, eax
dec edi
xor r9d, r9d
test r13d, r13d
jle 0x1400202db
lea eax, [rdi + 3]
cmp eax, r12d
jg 0x1400202db
mov edx, 3
mov rcx, r14
call fcn.140021d70
mov edi, dword [r14 + 0x18]
mov esi, eax
bsr eax, dword [r14 + 0x20]
sub edi, eax
dec edi
xor r9d, r9d
jmp 0x1400202de
mov dword [rbp + 0x38], r9d
jmp 0x1400201e2
mov esi, r9d
mov eax, dword [rbp + 0x60]
test esi, esi
mov dword [rbp + 8], esi
cmove eax, r9d
mov dword [rbp + 0x9c], eax
lea eax, [rdi + 3]
cmp eax, r12d
jg 0x140020307
mov edx, 3
mov rcx, r14
call fcn.140021d70
jmp 0x14002030a
mov eax, r9d
mov ecx, dword [rbp]
mov r9, qword [rbp + 0x28]
mov r8d, dword [rbp + 0x10]
mov edx, dword [rbp + 4]
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], ecx
mov rcx, r15
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
call fcn.14002a180
mov rax, qword [rbp + 0x90]
movabs rdx, 0xffffffffffffff0
lea rcx, [rax*4]
lea rax, [rcx + 0xf]
mov qword [rbp + 0x88], rcx
cmp rax, rcx
ja 0x14002035e
mov rax, rdx
and rax, 0xfffffffffffffff0
call fcn.140057540
mov r15d, dword [r14 + 8]
sub rsp, rax
bsr eax, dword [r14 + 0x20]
mov edi, dword [r14 + 0x18]
mov edx, 4
shl r15d, 3
lea r10, [rsp + 0xc0]
sub edi, eax
mov qword [rbp + 0xa0], r10
test esi, esi
mov eax, 2
cmovne edx, eax
lea ecx, [rdi - 1]
test r13d, r13d
jle 0x1400203b2
lea eax, [rdi + rdx]
cmp eax, r15d
ja 0x1400203b2
mov eax, 1
jmp 0x1400203b4
xor eax, eax
movsxd r8, dword [rbp + 4]
sub r15d, eax
movsxd r9, dword [rbp + 0x10]
mov rdi, r8
mov dword [rbp + 0xc], eax
xor eax, eax
mov qword [rbp + 0xb8], r8
mov esi, eax
mov qword [rbp + 0x80], r9
cmp r8, r9
jge 0x14002042b
mov eax, dword [rbp + 8]
mov ebx, esi
neg eax
sbb r13d, r13d
lea eax, [rdx + rcx]
cmp eax, r15d
ja 0x140020415
mov rcx, r14
call fcn.140021d70
mov ecx, dword [r14 + 0x18]
xor esi, eax
bsr eax, dword [r14 + 0x20]
mov r9, qword [rbp + 0x80]
mov r10, qword [rbp + 0xa0]
sub ecx, eax
dec ecx
or ebx, esi
mov dword [r10 + rdi*4], esi
lea edx, [r13 + 5]
inc rdi
cmp rdi, r9
jl 0x1400203e6
mov r13d, dword [rbp + 0x1c]
mov eax, ebx
mov r8d, dword [rbp + 8]
lea rsi, [0x140084b60]
xor ecx, ecx
mov edi, ecx
cmp dword [rbp + 0xc], ecx
je 0x140020478
lea eax, [rax + r8*4]
movsxd rdx, r13d
movsxd rcx, eax
lea rcx, [rcx + rdx*8]
movzx eax, byte [rcx + rsi + 2]
cmp byte [rcx + rsi], al
je 0x140020478
mov edx, 1
mov rcx, r14
call fcn.140021d70
mov r9, qword [rbp + 0x80]
mov edi, eax
mov r10, qword [rbp + 0xa0]
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp + 0xb8]
movsxd rcx, r13d
cmp rdx, r9
jge 0x1400204bb
lea eax, [rdi + r8*2]
lea edi, [rax + rax]
lea r8, [rcx*8]
nop word [rax + rax]
mov eax, dword [r10 + rdx*4]
add eax, edi
cdqe
add rax, r8
movsx eax, byte [rax + rsi]
mov dword [r10 + rdx*4], eax
inc rdx
cmp rdx, r9
jl 0x1400204a0
bsr eax, dword [r14 + 0x20]
mov ecx, dword [r14 + 0x18]
sub ecx, eax
mov dword [rbp + 0x18], 2
add ecx, 3
mov eax, 5
mov dword [rbp + 0xc], eax
cmp ecx, r12d
jg 0x1400204f2
mov r8d, eax
lea rdx, [0x140082754]
mov rcx, r14
call fcn.140021e40
mov dword [rbp + 0x18], eax
mov rsi, qword [rbp + 0x88]
movabs rdi, 0xffffffffffffff0
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x14002050f
mov rax, rdi
and rax, 0xfffffffffffffff0
call fcn.140057540
mov r9d, dword [rbp]
sub rsp, rax
mov rcx, qword [rbp + 0x50]
mov r8d, r13d
lea rax, [rsp + 0xc0]
mov rdx, rax
mov qword [rbp + 0xe0], rax
call fcn.140023bb0
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x140020549
mov rax, rdi
and rax, 0xfffffffffffffff0
call fcn.140057540
sub rsp, rax
shl r12d, 3
mov rcx, r14
lea r15, [rsp + 0xc0]
mov qword [rbp + 0xd0], r15
call fcn.140023660
mov r9, qword [rbp + 0x80]
mov r8d, eax
mov rax, qword [rbp + 0xb8]
cmp rax, r9
jge 0x140020690
mov ebx, dword [rbp + 0x1c]
lea r13, [r15 + rax*4]
mov rdi, rax
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xe0]
mov r10d, 0x30
sub rax, r15
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x118]
mov ecx, ebx
movsx edx, word [rax + rdi*2 + 2]
movsx eax, word [rax + rdi*2]
sub edx, eax
imul edx, dword [rbp]
shl edx, cl
mov ecx, dword [rbp + 0x30]
cmp edx, 0x30
mov r15d, edx
cmovl r15d, r10d
lea eax, [rdx*8]
mov edx, ecx
cmp eax, r15d
cmovl r15d, eax
xor eax, eax
mov esi, eax
lea eax, [r8 + rcx*8]
cmp eax, r12d
jge 0x14002064c
mov rbx, qword [rbp + 0xc8]
nop dword [rax]
cmp esi, dword [rbx + r13]
jge 0x140020632
mov rcx, r14
call fcn.140021d70
mov rcx, r14
mov edi, eax
call fcn.140023660
mov r8d, eax
test edi, edi
je 0x140020632
add esi, r15d
sub r12d, r15d
add eax, 8
mov edx, 1
cmp eax, r12d
jl 0x140020600
mov ebx, dword [rbp + 0x1c]
mov r10d, 0x30
mov rdi, qword [rbp + 0xd8]
mov ecx, dword [rbp + 0x30]
mov r9, qword [rbp + 0x80]
mov dword [r13], esi
test esi, esi
jle 0x140020667
lea eax, [rcx - 1]
mov ecx, eax
cmp eax, 2
mov eax, 2
cmovl ecx, eax
mov dword [rbp + 0x30], ecx
inc rdi
add r13, 4
mov qword [rbp + 0xd8], rdi
cmp rdi, r9
jl 0x1400205b2
mov r13d, dword [rbp + 0x1c]
mov rsi, qword [rbp + 0x88]
mov r15, qword [rbp + 0xd0]
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400206a3
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140057540
sub rsp, rax
lea eax, [r8 + 0x30]
lea rdi, [rsp + 0xc0]
mov qword [rbp + 0xc8], rdi
cmp eax, r12d
jg 0x1400206df
mov r8d, 7
lea rdx, str.wmW_
mov rcx, r14
call fcn.140021e40
mov dword [rbp + 0xc], eax
mov r12d, dword [rbp + 0x34]
mov rcx, r14
shl r12d, 6
mov dword [rbp + 0x34], r12d
call fcn.140023660
mov ecx, r12d
sub ecx, eax
dec ecx
cmp dword [rbp + 8], 0
je 0x14002071d
cmp r13d, 2
jl 0x14002071d
lea eax, [r13*8 + 0x10]
cmp ecx, eax
jl 0x14002071d
mov r12d, 8
xor r8d, r8d
jmp 0x140020723
xor r8d, r8d
mov r12d, r8d
lea rax, [rsi + 0xf]
movabs r9, 0xffffffffffffff0
cmp rax, rsi
ja 0x140020739
mov rax, r9
and rax, 0xfffffffffffffff0
call fcn.140057540
sub rsp, rax
lea rax, [rsi + 0xf]
lea rdx, [rsp + 0xc0]
mov qword [rbp + 0x88], rdx
cmp rax, rsi
ja 0x140020760
mov rax, r9
and rax, 0xfffffffffffffff0
call fcn.140057540
sub rsp, rax
sub ecx, r12d
mov r9, r15
mov dword [rsp + 0x90], r8d
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x88], r8d
mov dword [rsp + 0x80], r8d
mov r8d, dword [rbp]
mov qword [rsp + 0x78], r14
mov dword [rsp + 0x70], r13d
mov dword [rsp + 0x68], r8d
mov r8d, dword [rbp + 0x10]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdx
mov edx, dword [rbp + 4]
mov qword [rbp + 0xd0], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x58]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rbp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x20], rax
call fcn.140024ac0
mov r9, qword [rbp + 0x28]
mov r8d, dword [rbp + 0x10]
mov edx, dword [rbp + 4]
mov rcx, qword [rbp + 0x50]
mov dword [rbp + 0xc], eax
mov eax, dword [rbp]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call fcn.14002a500
mov r15, qword [rbp + 0xf0]
xor eax, eax
mov rbx, qword [rbp + 0xe8]
mov edi, eax
mov eax, dword [rbp + 0x3c]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [rbp + 0x14]
add eax, 0x800
movsxd rsi, eax
shl rsi, 2
mov rcx, qword [rbp + rdi*8 + 0x120]
mov r8, rsi
lea rdx, [rcx + rbx*4]
call fcn.140058e90
inc rdi
cmp rdi, r15
jl 0x140020851
mov eax, dword [rbp + 0x20]
movabs r8, 0xffffffffffffff0
mov edx, dword [rbp]
mov rbx, qword [rbp + 0x68]
imul eax, edx
movsxd r15, eax
mov dword [rbp + 0x20], eax
lea rax, [r15 + 0xf]
cmp rax, r15
ja 0x140020896
mov rax, r8
and rax, 0xfffffffffffffff0
call fcn.140057540
sub rsp, rax
mov eax, dword [rbp + 0x14]
imul eax, edx
lea rdi, [rsp + 0xc0]
movsxd rcx, eax
add rcx, rcx
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400208c2
mov rax, r8
and rax, 0xfffffffffffffff0
call fcn.140057540
sub rsp, rax
xor r9d, r9d
lea rsi, [rsp + 0xc0]
cmp edx, 2
jne 0x1400208eb
mov rax, qword [rbp + 0xe8]
lea rcx, [rsi + rax*2]
jmp 0x1400208ee
mov rcx, r9
mov eax, dword [rbx + 0x24]
lea rdx, [rbx + 0x2c]
mov r8d, dword [rbp + 0x34]
mov dword [rsp + 0xb0], eax
sub r8d, r12d
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0xa8], eax
mov eax, dword [rbp + 0xc]
mov dword [rsp + 0xa0], r9d
mov qword [rsp + 0x98], rdx
mov rdx, qword [rbp + 0x50]
mov dword [rsp + 0x90], eax
mov eax, dword [rbp + 0xc0]
mov dword [rsp + 0x88], r13d
mov qword [rsp + 0x80], r14
mov dword [rsp + 0x78], eax
mov rax, qword [rbp + 0xa0]
mov dword [rsp + 0x70], r8d
mov r8d, dword [rbp + 4]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x70]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0x58]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0x18]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 0x9c]
mov dword [rsp + 0x48], eax
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, dword [rbp + 0x10]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140027350
test r12d, r12d
je 0x1400209b9
mov edx, 1
mov rcx, r14
call fcn.140021dc0
mov dword [rbp + 0x5c], eax
bsr edx, dword [r14 + 0x20]
mov ecx, dword [rbp + 0x4c]
sub ecx, dword [r14 + 0x18]
mov eax, dword [rbp]
inc ecx
mov r9, qword [rbp + 0x28]
add edx, ecx
mov rcx, qword [rbp + 0xd0]
mov r8d, dword [rbp + 0x10]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], edx
mov edx, dword [rbp + 4]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0xc8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x50]
call fcn.14002a3b0
cmp dword [rbp + 0x5c], 0
je 0x140020a71
mov eax, dword [rbx + 0x28]
mov r9d, r13d
mov r12, qword [rbp + 0xa8]
mov r8, rdi
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 0x2c]
mov dword [rsp + 0x60], eax
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x14]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp]
mov dword [rsp + 0x20], eax
call fcn.140025b60
mov edx, dword [rbp + 0x38]
mov eax, 0xffff9000
test edx, edx
je 0x140020a91
cmp dword [rbp + 0x20], 0
jle 0x140020a91
mov rdi, qword [rbp + 0x28]
mov rcx, r15
movsx rax, ax
rep stosw word [rdi], ax
mov eax, dword [rbx + 0x28]
lea r8, [rbp + 0x108]
mov r15, qword [rbp + 0x50]
mov r9, qword [rbp + 0x28]
mov rcx, r15
mov dword [rsp + 0x60], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x58], edx
mov rdx, rsi
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 8]
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x20], eax
call fcn.140021080
mov r14, qword [rbp + 0xf0]
xor eax, eax
mov esi, eax
mov eax, dword [rbx + 0x28]
mov r9d, recvfrom
cmp dword [rbx + 0x40], r9d
mov r8d, recvfrom
mov rdi, qword [rbp + rsi*8 + 0x108]
cmovg r9d, dword [rbx + 0x40]
mov rdx, rdi
cmp dword [rbx + 0x44], r8d
mov rcx, rdi
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0x3c]
cmovg r8d, dword [rbx + 0x44]
mov dword [rsp + 0x50], eax
mov rax, qword [r15 + 0x40]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x50]
mov dword [rsp + 0x38], eax
movzx eax, word [rbx + 0x48]
mov word [rsp + 0x30], ax
movzx eax, word [rbx + 0x4a]
mov word [rsp + 0x28], ax
mov eax, dword [r15 + 0x28]
mov dword [rsp + 0x20], eax
mov dword [rbx + 0x40], r9d
mov dword [rbx + 0x44], r8d
call fcn.1400236a0
test r13d, r13d
je 0x140020bca
mov eax, dword [rbx + 0x28]
movsxd rcx, dword [r15 + 0x28]
mov edx, dword [rbp + 0x14]
mov r9d, dword [rbp + 0x40]
sub edx, ecx
mov r8d, dword [rbx + 0x40]
mov dword [rsp + 0x58], eax
lea rdi, [rdi + rcx*4]
mov eax, dword [rbp + 0x3c]
mov rcx, rdi
mov dword [rsp + 0x50], eax
mov rax, qword [r15 + 0x40]
mov qword [rsp + 0x48], rax
mov eax, dword [rbp + 0x48]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x4c]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x44]
mov word [rsp + 0x30], ax
movzx eax, word [rbx + 0x48]
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], edx
mov rdx, rdi
call fcn.1400236a0
inc rsi
cmp rsi, r14
jl 0x140020af3
mov eax, dword [rbx + 0x40]
mov edx, dword [rbp + 0x40]
mov ecx, dword [rbp + 0x48]
mov r12, qword [rbp + 0xa8]
mov dword [rbx + 0x44], eax
movzx eax, word [rbx + 0x48]
mov word [rbx + 0x4a], ax
mov eax, dword [rbx + 0x4c]
mov dword [rbx + 0x50], eax
mov eax, dword [rbp + 0x44]
mov word [rbx + 0x48], ax
mov dword [rbx + 0x40], edx
mov dword [rbx + 0x4c], ecx
test r13d, r13d
je 0x140020c13
mov dword [rbx + 0x44], edx
mov word [rbx + 0x4a], ax
mov dword [rbx + 0x50], ecx
cmp dword [rbp], 1
mov r13, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x28]
jne 0x140020c38
lea r8, [r13*2]
mov rdx, rsi
lea rcx, [r8 + rsi]
call fcn.140058e90
cmp dword [rbp + 8], 0
jne 0x140020dcb
mov rdi, qword [rbp + 0xb0]
mov rcx, r12
mov r8, rdi
lea rdx, [rdi + rsi]
call fcn.140058e90
mov r8, rdi
lea rcx, [rdi + rsi]
mov rdx, rsi
call fcn.140058e90
cmp dword [rbx + 0x38], 0xa
mov eax, 0x400
mov ecx, dword [rbp + 0x64]
cmovl ax, word [rbp + 0x60]
test ecx, ecx
jle 0x140020cc1
mov r9, qword [rbp + 0xb0]
mov rdi, rsi
add r9, r12
movsx r8d, ax
sub rdi, r9
mov edx, ecx
nop dword [rax]
nop word [rax + rax]
movsx eax, word [rdi + r9]
movsx ecx, word [r9]
lea r9, [r9 + 2]
add ecx, r8d
cmp ecx, eax
cmovge cx, ax
mov word [r9 - 2], cx
sub rdx, 1
jne 0x140020ca0
mov r9, qword [rbp + 0x78]
mov r8, qword [rbp + 0x80]
lea r11, [r13*2]
mov r15, qword [rbp + 0xb8]
mov r10, r12
xor ebx, ebx
mov r14d, 0xffff9000
test r15, r15
jle 0x140020d17
mov rdx, rsi
mov rdi, r9
sub rdx, r12
mov rax, r10
sub rdi, r12
mov rcx, r15
nop dword [rax]
mov word [rdx + rax], bx
mov word [rax], r14w
mov word [rdi + rax], r14w
lea rax, [rax + 2]
sub rcx, 1
jne 0x140020d00
cmp r8, r13
jge 0x140020d49
mov rdx, rsi
lea rax, [r10 + r8*2]
mov rdi, r9
sub rdx, r12
sub rdi, r12
mov rcx, r13
sub rcx, r8
mov word [rax + rdx], bx
mov word [rax], r14w
mov word [rax + rdi], r14w
lea rax, [rax + 2]
sub rcx, 1
jne 0x140020d32
add r10, r11
sub qword [rbp + 0xf8], 1
jne 0x140020ce6
mov rbx, qword [rbp + 0x68]
mov r14, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x50]
mov r9d, dword [rbp + 0x24]
add rdx, 0x10
mov r8d, dword [rbp + 0x14]
lea rcx, [rbx + 0x54]
mov eax, dword [r14 + 0x20]
mov dword [rbx + 0x2c], eax
mov eax, dword [rbp + 0x1d0]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x14]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x108]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x100]
mov dword [rsp + 0x20], eax
call fcn.1400216a0
mov ecx, dword [r14 + 0x18]
xor eax, eax
mov dword [rbx + 0x38], eax
bsr eax, dword [r14 + 0x20]
sub ecx, eax
dec ecx
cmp ecx, dword [rbp + 0x4c]
jle 0x140020e12
mov eax, 0xfffffffd
jmp 0x140020e89
mov ecx, dword [rbp + 0x64]
test ecx, ecx
jle 0x140020cc1
mov r9, qword [rbp + 0x78]
mov r8d, ecx
mov r10, qword [rbp + 0xb0]
mov rdi, r9
nop word [rax + rax]
movzx edx, word [rdi]
mov rax, rdi
sub rax, r10
cmp dx, word [rax]
cmovge dx, word [rax]
mov word [rdi], dx
add rdi, 2
sub r8, 1
jne 0x140020df0
jmp 0x140020cc5
cmp dword [r14 + 0x30], 0
je 0x140020e20
mov dword [rbx + 0x30], 1
mov eax, dword [rbp + 0x1c0]
cdq
idiv dword [rbx + 0x14]
jmp 0x140020e89
mov edx, dword [rbp + 0x14]
mov r8d, r13d
mov rcx, rbx
call fcn.14001f360
mov eax, dword [rbp + 0x1d0]
lea rcx, [rbx + 0x54]
mov r9d, dword [rbp + 0x24]
lea rdx, [r15 + 0x10]
mov r8d, dword [rbp + 0x14]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x14]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x108]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x100]
mov dword [rsp + 0x20], eax
call fcn.1400216a0
mov eax, dword [rbp + 0x1c0]
cdq
idiv dword [rbx + 0x14]
jmp 0x140020e89
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140056cc0
mov rbx, qword [rbp + 0x1a0]
mov rsi, qword [rbp + 0x1a8]
mov rdi, qword [rbp + 0x1b0]
lea rsp, [rbp + 0x170]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret