Function at 0x140046490
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push r12
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov r10d, dword [rcx]
mov rbx, rcx
imul r10d, r9d
mov r13, rdx
mov rcx, 0xffffffffffffffff
mov r14d, r9d
mov eax, 2
mov r12, r8
mul r10
cmovo rax, rcx
mov rcx, rax
call fcn.1400b609c
mov qword [rbp - 0x69], rax
test rax, rax
jne 0x1400464fa
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
mov qword [rsp + 0x130], rsi
xor r11d, r11d
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xe0], r15
mov r15d, dword [rbx]
cmp r15d, 1
jbe 0x14004654b
lea rdx, [rbp - 0x61]
lea r8, [rbp - 0x69]
lea r9d, [r15 - 1]
nop word [rax + rax]
mov rax, qword [r8]
lea rdx, [rdx + 8]
lea r8, [r8 + 8]
lea rcx, [rax + r14*2]
mov qword [rdx - 8], rcx
sub r9, 1
jne 0x140046530
jmp 0x140046550
test r15d, r15d
je 0x1400465ad
mov r13, qword [rbp + 0x67]
mov esi, r11d
nop word [rax + rax]
mov r15d, esi
mov rbx, qword [rbp + r15*8 - 0x69]
test r14d, r14d
je 0x14004659e
mov rdi, r11
mov rcx, qword [r13 + 0x28]
mov edx, esi
mov rax, qword [r12 + r15*8]
mov r8, qword [rcx]
movss xmm2, dword [rax + rdi]
call qword [rhtons + 8]
mov word [rbx], ax
lea rbx, [rbx + 2]
lea rdi, [rdi + 4]
sub r14, 1
jne 0x140046570
mov r14d, dword [rbp + 0x7f]
xor r11d, r11d
mov r15d, dword [r13]
inc esi
cmp esi, r15d
jb 0x140046560
mov r13, qword [rbp + 0x6f]
mov r12, qword [rbp + 0x67]
mov esi, 4
mov qword [rbp - 0x49], rsi
movzx eax, word [r12 + 4]
cmp r11w, ax
jae 0x1400468b5
mov r15d, dword [r12]
lea rdi, [rbp - 0x39]
sub rdi, r12
mov dword [rsp + 0x38], r15d
lea rcx, [rsp + 0x24]
mov qword [rbp - 0x51], rax
sub rdi, rcx
lea r9, [rbp - 0x19]
lea rbx, [r12 + 8]
mov qword [rbp - 0x41], rdi
mov qword [rbp - 0x71], r9
mov qword [rbp - 0x59], rbx
nop dword [rax + rax]
movzx ecx, word [rbx - 2]
movsx edx, word [rbx]
mov word [rsp + 0x20], cx
mov word [rsp + 0x30], dx
test r15d, r15d
je 0x14004674a
mov dword [rsp + 0x34], edx
lea rsi, [rbp - 0x69]
mov r8d, r15d
xor edx, edx
shl r8, 2
mov rcx, r9
mov r14d, r15d
call fcn.1400ba240
mov r15d, dword [rsp + 0x34]
lea r13, [rdi + rbx]
xor edi, edi
mov r8, qword [rsi]
lea r12, [rsp + 0x24]
movsx r9d, word [rsp + 0x20]
add r12, rdi
movsx r11d, word [r8 + 4]
movsx ecx, word [r8 + 2]
mov r10d, r11d
movsx eax, word [r8]
mov edx, ecx
mov ebx, eax
mov word [rsp + rdi + 0x2c], ax
mov eax, ecx
imul edx, r15d
imul eax, r9d
mov word [r12], cx
mov ecx, r9d
imul r10d, r9d
movsx r9d, word [r8 + 6]
imul ebx, r15d
add r10d, edx
mov edx, r9d
imul edx, ecx
movsx ecx, word [r8 + 8]
add ebx, eax
sar ebx, 8
mov eax, r11d
imul eax, r15d
sar r10d, 8
add edx, eax
mov eax, ecx
sar edx, 8
sub eax, edx
mov r8d, edx
sub r8d, ecx
cmp edx, ecx
mov ecx, r10d
cmovle r8d, eax
sub ecx, r9d
mov eax, r9d
sub eax, r10d
cmp r10d, r9d
cmovle ecx, eax
mov eax, ebx
add r8d, ecx
sub eax, r11d
mov ecx, r11d
sub ecx, ebx
cmp ebx, r11d
cmovle eax, ecx
lea ecx, [r8 + rax]
cmp ecx, 0xcc
jl 0x140046701
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x140046706
mov edx, reloc.WSOCK32.dll_recv
mov word [rsp + rdi + 0x28], dx
add rsi, 8
add rdi, 2
mov word [r12 + r13 - 8], dx
sub r14, 1
jne 0x140046641
mov r15d, dword [rsp + 0x38]
mov esi, 4
mov r9, qword [rbp - 0x71]
xor r11d, r11d
movzx ecx, word [rsp + 0x20]
movzx edx, word [rsp + 0x30]
mov rbx, qword [rbp - 0x59]
mov r14d, dword [rbp + 0x7f]
mov rax, qword [rbp - 0x51]
cmp r14d, 2
jbe 0x140046882
lea eax, [r14 - 2]
mov r12, rsi
mov qword [rbp - 0x79], rax
nop
test r15d, r15d
je 0x140046850
movsx eax, cx
lea rbx, [rbp - 0x69]
mov r10, r9
mov r14d, r15d
mov r15d, eax
movsx r13d, dx
mov r9, r11
movsx eax, word [rsp + r9 + 0x2c]
movsx edi, word [rsp + r9 + 0x24]
movsx r11d, word [rsp + r9 + 0x28]
mov r8d, edi
imul eax, r13d
imul r8d, r15d
add r8d, eax
mov rax, qword [rbx]
sar r8d, 8
movsx esi, word [r12 + rax]
mov eax, esi
sub eax, r8d
cdq
idiv r11d
cmp ax, 7
jle 0x1400467c2
mov eax, 7
jmp 0x1400467cd
cmp ax, 0xfff8
jge 0x1400467cd
mov eax, 0xfffffff8
movsx ecx, ax
imul ecx, r11d
add ecx, r8d
cmp ecx, 0x7fff
jle 0x1400467e6
mov ecx, 0x7fff
jmp 0x1400467f0
mov edx, 0xffff8000
cmp ecx, edx
cmovl ecx, edx
movsx rax, ax
lea rdx, [0x14013ddc8]
and eax, 0xf
movsx edx, word [rdx + rax*2]
imul edx, r11d
sar edx, 8
cmp dx, 0x10
jge 0x140046814
mov edx, reloc.WSOCK32.dll_recv
mov word [rsp + r9 + 0x24], cx
add rbx, 8
sub ecx, esi
mov word [rsp + r9 + 0x28], dx
imul ecx, ecx
mov word [rsp + r9 + 0x2c], di
add r9, 2
sar ecx, 7
add dword [r10], ecx
add r10, 4
sub r14, 1
jne 0x140046780
mov r15d, dword [rsp + 0x38]
mov rax, qword [rbp - 0x79]
mov r9, qword [rbp - 0x71]
add r12, 2
movzx ecx, word [rsp + 0x20]
sub rax, 1
movzx edx, word [rsp + 0x30]
mov r11d, 0
mov qword [rbp - 0x79], rax
jne 0x140046760
mov rbx, qword [rbp - 0x59]
mov r14d, dword [rbp + 0x7f]
mov rax, qword [rbp - 0x51]
mov rdi, qword [rbp - 0x41]
add rbx, 4
add r9, 8
mov qword [rbp - 0x59], rbx
mov esi, 4
mov qword [rbp - 0x71], r9
sub rax, 1
mov qword [rbp - 0x51], rax
lea r11d, [rsi - 4]
jne 0x140046600
mov r13, qword [rbp + 0x6f]
mov r12, qword [rbp + 0x67]
test r15d, r15d
je 0x140046a09
lea r9, [rbp + 0x67]
mov r11d, r15d
lea r10, [rbp - 0x11]
nop dword [rax]
mov r8d, dword [r10 - 8]
mov eax, 1
mov byte [r9], 0
mov rcx, r10
mov edx, dword [rcx]
cmp edx, r8d
jae 0x1400468ed
mov byte [r9], al
mov r8d, edx
inc eax
add rcx, 8
cmp eax, 7
jb 0x1400468e0
inc r9
add r10, 4
sub r11, 1
jne 0x1400468d0
mov r15d, dword [r12]
test r15d, r15d
je 0x140046a09
xor edx, edx
mov r8d, r15d
nop word [rax + rax]
movzx eax, byte [rbp + rdx + 0x67]
lea rcx, [rdx + rax*2]
movzx eax, word [rbp + rcx*2 - 0x39]
mov word [rsp + rdx*2 + 0x28], ax
lea rdx, [rdx + 1]
sub r8, 1
jne 0x140046920
mov r15d, dword [r12]
test r15d, r15d
je 0x140046a09
lea r8, [rbp - 0x69]
xor edx, edx
mov r9d, r15d
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r8]
lea rdx, [rdx + 2]
lea r8, [r8 + 8]
movzx eax, word [rcx]
mov word [rsp + rdx + 0x2a], ax
movzx eax, word [rcx + 2]
mov word [rsp + rdx + 0x22], ax
sub r9, 1
jne 0x140046960
xor edx, edx
test r15d, r15d
je 0x140046a09
nop dword [rax]
movzx ecx, byte [rbp + rdx + 0x67]
inc edx
mov byte [r13], cl
inc r13
mov r15d, dword [r12]
cmp edx, r15d
jb 0x140046990
xor edx, edx
test r15d, r15d
je 0x140046a09
nop
movzx ecx, word [rsp + rdx*2 + 0x28]
inc edx
mov word [r13], cx
add r13, 2
mov r15d, dword [r12]
cmp edx, r15d
jb 0x1400469b0
xor edx, edx
test r15d, r15d
je 0x140046a09
movzx ecx, word [rsp + rdx*2 + 0x24]
inc edx
mov word [r13], cx
add r13, 2
mov r15d, dword [r12]
cmp edx, r15d
jb 0x1400469d0
xor edx, edx
test r15d, r15d
je 0x140046a09
movzx ecx, word [rsp + rdx*2 + 0x2c]
inc edx
mov word [r13], cx
add r13, 2
mov r15d, dword [r12]
cmp edx, r15d
jb 0x1400469f0
mov eax, dword [rbp + 0x7f]
mov dil, 1
imul r14d, r15d, 7
cmp eax, 2
jbe 0x140046b50
movzx r10d, word [rbp + 0x7f]
add eax, 0xfffffffe
mov r15d, eax
mov qword [rbp - 0x79], r15
nop dword [rax + rax]
xor r11d, r11d
cmp dword [r12], r11d
jbe 0x140046b3a
mov r15, qword [rbp - 0x49]
movzx ecx, byte [rbp + r11 + 0x67]
movsx eax, word [rsp + r11*2 + 0x2c]
movsx esi, word [rsp + r11*2 + 0x24]
movsx ebx, word [rsp + r11*2 + 0x28]
movsx r8d, word [r12 + rcx*4 + 8]
movsx ecx, word [r12 + rcx*4 + 6]
imul r8d, eax
mov rax, qword [rbp + r11*8 - 0x69]
imul ecx, esi
movsx eax, word [rax + r15]
add r8d, ecx
sar r8d, 8
sub eax, r8d
cdq
idiv ebx
mov ecx, eax
cmp ax, 7
jle 0x140046a92
mov ecx, 7
jmp 0x140046a9d
cmp ax, 0xfff8
jge 0x140046a9d
mov ecx, 0xfffffff8
movsx edx, cx
imul edx, ebx
add edx, r8d
cmp edx, 0x7fff
jle 0x140046ab5
mov edx, 0x7fff
jmp 0x140046abf
mov eax, 0xffff8000
cmp edx, eax
cmovl edx, eax
movsx rax, cx
lea r8, [0x14013ddc8]
and eax, 0xf
movsx r8d, word [r8 + rax*2]
imul r8d, ebx
sar r8d, 8
cmp r8w, 0x10
jge 0x140046ae7
mov r8d, reloc.WSOCK32.dll_recv
mov word [rsp + r11*2 + 0x28], r8w
mov word [rsp + r11*2 + 0x2c], si
mov word [rsp + r11*2 + 0x24], dx
test dil, dil
je 0x140046b0e
movzx r10d, cx
and r10w, 0xf
shl r10w, 4
jmp 0x140046b1e
and cl, 0xf
or cl, r10b
mov byte [r13], cl
inc r13
inc r14d
test dil, dil
sete dil
inc r11d
cmp r11d, dword [r12]
jb 0x140046a41
mov r15, qword [rbp - 0x79]
mov rsi, qword [rbp - 0x49]
add rsi, 2
sub r15, 1
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x79], r15
jne 0x140046a30
mov rcx, qword [rbp - 0x69]
call fcn.1400b60a4
mov r15, qword [rsp + 0xe0]
mov eax, r14d
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0x130]
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret