Function at 0x140034770
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x3e8], rbx
mov rax, qword [0x1401b5030]
xor rax, rsp
mov qword [rbp + 0x280], rax
movsxd r15, r9d
mov edi, r8d
mov dword [rsp + 0x44], edx
mov rsi, rcx
call fcn.140032ba0
movsxd rbx, eax
test eax, eax
jg 0x1400347e0
lea r8, str.Incorrect_data_received_from_the_server._n
xor edx, edx
lea rcx, vtable.Log.0
call fcn.1400153f0
jmp 0x140034ba0
mov edx, ebx
mov rcx, rsi
call fcn.1400268d0
mov r8d, ebx
mov rdx, qword [rsi + 0x1560]
mov rcx, rsi
call fcn.140025ac0
lea rax, [0x1400739d0]
mov qword [rbp + 0x1d0], rax
lea rax, [0x140073a60]
mov qword [rbp + 0x1d8], rax
lea rax, [0x140073a00]
mov qword [rbp + 0x1e0], rax
lea rax, [0x140073ab0]
mov qword [rbp + 0x1e8], rax
lea rax, [0x140073be0]
mov qword [rbp + 0x1f0], rax
xor r12d, r12d
mov qword [rbp + 0x24c], r12
mov dword [rbp + 0x1f8], r12d
lea rax, str.Bogus_message_code__d
mov qword [rbp + 0x258], rax
mov dword [rbp + 0x260], 0x80
mov qword [rbp + 0x268], r12
mov qword [rbp + 0x270], r12
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140072f60
mov rdx, qword [rsi + 0x1560]
mov qword [0x1402c0b18], rdx
mov qword [0x1402c0b10], rbx
lea rax, [0x1400346e0]
mov qword [rsi + 0xd6d0], rax
lea rax, [0x1400346f0]
mov qword [rsi + 0xd6d8], rax
lea rax, [0x140034720]
mov qword [rsi + 0xd6e0], rax
lea rax, [0x140075850]
mov qword [rsi + 0xd6e8], rax
lea rax, [fcn.140015380]
mov qword [rsi + 0xd6f0], rax
lea rax, [rsi + 0xd6c0]
mov qword [rax], rdx
mov qword [rsi + 0xd6c8], rbx
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x70]
call fcn.140073510
mov dword [rbp - 0x50], 2
lea rcx, [rsp + 0x70]
call fcn.1400737a0
cmp dword [rbp - 0x1c], r15d
jne 0x140034b79
mov eax, dword [rbp + 0x2f0]
cmp dword [rbp - 0x18], eax
jne 0x140034b79
cmp dword [rbp - 0x10], 3
jne 0x140034b79
lea rbx, [rsi + 0x15c0]
mov qword [rsp + 0x68], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov edx, 0x10000
mov rcx, rsi
call fcn.140035a60
mov rax, qword [rsi + 0x16b0]
mov qword [rsp + 0x50], rax
mov r14, r15
mov qword [rsp + 0x58], r15
mov eax, dword [rbp - 0x18]
cmp dword [rbp + 8], eax
jae 0x140034b40
lea r13d, [rdi + 1]
cmp dword [rbp - 0x6c], 0xcd
je 0x1400349b3
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x28], shutdown
mov rcx, qword [rsp + 0x70]
mov eax, dword [rbp - 0x6c]
mov dword [rcx + 0x2c], eax
lea rcx, [rsp + 0x70]
mov rax, qword [rsp + 0x70]
call qword [rax]
mov eax, dword [rbp - 0x18]
cmp dword [rbp + 8], eax
jb 0x1400349d8
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x28], 0x7b
mov edx, 0xffffffff
lea rcx, [rsp + 0x70]
mov rax, qword [rsp + 0x70]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140034a27
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400349fc
mov eax, dword [rbp + 8]
mov dword [rcx + 8], eax
mov ecx, dword [rbp - 0x18]
mov rax, qword [rbp - 0x80]
mov dword [rax + 0xc], ecx
lea rcx, [rsp + 0x70]
mov rax, qword [rbp - 0x80]
call qword [rax]
mov dword [rsp + 0x40], r12d
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov rax, qword [rbp + 0x178]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, dword [rsp + 0x40]
add dword [rbp + 8], eax
cmp byte [0x1402c0a0f], 0
jne 0x140034b53
mov r8, qword [rsi + 0x16b0]
add r8, 0x8000
test r14, r14
jle 0x140034a87
mov r9, r12
mov r10, r14
nop dword [rax]
mov rcx, qword [rsi + 0x16b0]
movzx edx, byte [rcx + r9 + 2]
bts edx, 9
shl edx, 0x10
movzx eax, byte [rcx + r9 + 1]
shl eax, 8
or edx, eax
movzx eax, byte [rcx + r9]
or edx, eax
mov dword [r8], edx
lea r8, [r8 + 4]
lea r9, [r9 + 3]
sub r10, 1
jne 0x140034a50
mov edx, dword [rsp + 0x44]
lea r12d, [rdx + r15]
movzx ecx, word [rsi + 0x2ce]
movzx eax, word [rsi + 0x2cc]
imul ecx, eax
mov eax, r13d
imul eax, r12d
cmp eax, ecx
jg 0x140034b6e
mov r14, qword [rsi + 0x16b0]
add r14, 0x8000
lea r15d, [r13 - 1]
cmp r15d, r13d
jge 0x140034b21
mov edi, edx
cmp edx, r12d
jge 0x140034b19
nop dword [rax]
mov rcx, qword [rsi + 0xd670]
test rcx, rcx
je 0x140034b0a
movzx eax, word [rsi + 0x2cc]
movzx r9d, byte [rsi + 0x5210]
shr r9d, 3
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
mov r8d, r15d
mov edx, edi
mov rcx, rsi
call fcn.14002c3a0
add r14, 4
inc edi
cmp edi, r12d
jl 0x140034ad0
mov edx, dword [rsp + 0x44]
inc r15d
cmp r15d, r13d
jl 0x140034ac6
inc r13d
mov eax, dword [rbp - 0x18]
cmp dword [rbp + 8], eax
mov r14, qword [rsp + 0x58]
mov r15d, r14d
mov r12d, 0
jb 0x140034984
jmp 0x140034b49
cmp byte [0x1402c0a0f], 0
jne 0x140034b53
lea rcx, [rsp + 0x70]
call fcn.1400736a0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140034b65
lea rcx, [rsp + 0x70]
call qword [rax + 0x50]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x6c], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140034ba0
lea r8, str.Tight_Encoding:_Wrong_JPEG_data_received._n
xor edx, edx
lea rcx, vtable.Log.0
call fcn.1400153f0
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140034ba0
lea rcx, [rsp + 0x70]
call qword [rax + 0x50]
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.14011b0c0
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x390
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret