Function at 0x140225850
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2a8], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x148], rax
mov r14, rdx
mov rsi, rcx
mov byte [r8], 0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov r13d, edi
mov ebx, edi
mov qword [rsp + 0x38], rbx
lea rdx, [rcx + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140031dd0
mov rdx, qword [rsi + 0x38]
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], dil
jne 0x1402258de
cmp qword [rax + 0x20], r14
jae 0x1402258d2
mov rax, qword [rax + 0x10]
jmp 0x1402258d8
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1402258c6
mov qword [rsp + 0x60], rdx
cmp rcx, rdx
je 0x1402258f5
cmp r14, qword [rcx + 0x20]
jb 0x1402258f5
mov qword [rsp + 0x68], rcx
jmp 0x1402258fd
mov qword [rsp + 0x70], rdx
mov rcx, rdx
mov qword [rsp + 0x78], rdx
cmp rcx, rdx
je 0x140225923
mov rbx, qword [rcx + 0x28]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x14022591e
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x38]
mov r15b, 1
jmp 0x140225926
xor r15b, r15b
lea rcx, [rbp - 0x80]
call fcn.140031f00
mov r12, 0xffffffffffffffff
test r15b, r15b
jne 0x140225945
lea edi, [r12 - 1]
jmp 0x140225de7
call fcn.1400303b0
mov rdx, qword [rbx + 0x40]
test rdx, rdx
jle 0x140225b0e
mov rcx, qword [rsi + 0x28]
call fcn.140199090
test al, al
je 0x140225af4
cmp dword [0x140452330], 1
jl 0x140225aea
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_siserverpacketdeal.cpp
lea rcx, [rbp - 0x20]
call fcn.14001c950
nop
mov r8d, 0xa
mov rdx, qword [rbx + 0x40]
lea rcx, [rbp - 0x48]
call fcn.14001caf0
nop
mov r8d, 0xa
mov edx, dword [rbx + 0xb8]
lea rcx, [rbp - 0x70]
call fcn.14001c580
nop
lea rdx, str._Len:
lea rcx, [rbp + 0x120]
call fcn.14001c950
mov rsi, rax
lea rdx, str._port:
lea rcx, [rbp + 0xf8]
call fcn.14001c950
mov rdi, rax
lea rdx, str._recv_too_long_packet_from_ip:
lea rcx, [rbp + 0xd0]
call fcn.14001c950
nop
lea r8, [rbx + 0x90]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.14001da00
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.14001da00
nop
lea r8, [rbp - 0x70]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.14001da00
nop
mov r8, rsi
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14001da00
nop
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14001da00
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x158
lea r8, [rbp - 0x20]
mov rdx, rax
lea rcx, [0x140452330]
call fcn.140188520
nop
lea rcx, [rbp + 8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x30]
call fcn.14001d440
nop
lea rcx, [rbp + 0x58]
call fcn.14001d440
nop
lea rcx, [rbp + 0x80]
call fcn.14001d440
nop
lea rcx, [rbp + 0xa8]
call fcn.14001d440
nop
lea rcx, [rbp + 0xd0]
call fcn.14001d440
nop
lea rcx, [rbp + 0xf8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x120]
call fcn.14001d440
nop
lea rcx, [rbp - 0x70]
call fcn.14001d440
nop
lea rcx, [rbp - 0x48]
call fcn.14001d440
nop
lea rcx, [rbp - 0x20]
call fcn.14001d440
mov edi, 0xfffffff6
jmp 0x140225de7
mov rdx, qword [rbx + 0x40]
mov rcx, rbx
call fcn.14013a5a0
test eax, eax
je 0x140225b1b
mov edi, 0xfffffff6
jmp 0x140225de7
mov edx, reloc.ODBC32.dll_SQLNumResultCols
mov rcx, rbx
call fcn.14013a8e0
xor r15b, r15b
cmp qword [rbx + 0x40], 0
jle 0x140225b37
mov rdx, qword [rbx + 0x28]
add rdx, qword [rbx + 0x30]
mov rax, qword [rbx + 0x38]
sub rax, qword [rbx + 0x30]
jmp 0x140225b4a
mov rdx, qword [rbx + 0x20]
add rdx, qword [rbx + 0x48]
mov rax, qword [rbx + 0x50]
sub rax, qword [rbx + 0x48]
mov r15b, 1
xor r9d, r9d
mov rcx, r14
cmp rax, 0x7fffffff
mov r8d, eax
jl 0x140225b61
mov r8d, 0x7fffffff
call qword [sym.imp.WS2_32.dll_recv]
mov ecx, eax
test eax, eax
jle 0x140225dae
movsxd r13, eax
add qword [rbx + 0x68], r13
test r15b, r15b
je 0x140225c93
add qword [rbx + 0x48], r13
mov r9, qword [rbx + 0x50]
cmp qword [rbx + 0x48], r9
jne 0x140225dd2
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r8, qword [rbx + 0x20]
mov rdx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 0xfffffff6
jne 0x140225bbb
lea edi, [rax + 8]
jmp 0x140225dd2
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x40], rax
cmp qword [rsp + 0x30], 0
jne 0x140225dd2
mov qword [rbx + 0x48], rdi
mov ecx, 0x78
call fcn.14028314c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140225bf5
mov rcx, rax
call fcn.14024a3c0
mov r15, rax
jmp 0x140225bf8
mov r15, rdi
lea rcx, [r15 + 0x70]
mov rdx, rbx
call fcn.1401a3090
mov rax, qword [rsi + 0x18]
mov qword [r15 + 0x68], rax
mov ecx, 0x28
call fcn.14028314c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140225c45
lea rdx, vtable.SIRefParam.0
mov qword [rax], rdx
mov dword [rax + 8], edi
lea rdx, vtable.SIRecvPacketsInfo.0
mov qword [rax], rdx
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
jmp 0x140225c48
mov rax, rdi
mov qword [r15 + 0x30], rax
mov dword [rax + 8], 1
mov qword [rsp + 0x48], rdi
mov rcx, qword [rsi + 0x10]
mov r10, qword [rcx]
lea rax, [r15 + 0x40]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9d, reloc.ODBC32.dll_SQLNumResultCols
mov r8, qword [rbx + 0x20]
mov rdx, r14
call qword [r10]
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140225dd2
add qword [rbx + 0x30], r13
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
jne 0x140225dd2
mov ecx, 0x78
call fcn.14028314c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140225cc6
mov rcx, rax
call fcn.14024a3c0
mov r15, rax
jmp 0x140225cc9
mov r15, rdi
lea rcx, [r15 + 0x70]
mov rdx, rbx
call fcn.1401a3090
mov rax, qword [rsi + 0x18]
mov qword [r15 + 0x68], rax
mov ecx, 0x28
call fcn.14028314c
mov rcx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140225d19
lea rdx, vtable.SIRefParam.0
mov qword [rax], rdx
mov dword [rax + 8], edi
lea rdx, vtable.SIRecvPacketsInfo.0
mov qword [rax], rdx
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rdi
jmp 0x140225d1c
mov rcx, rdi
mov qword [r15 + 0x30], rcx
mov rax, qword [rbx + 0x28]
mov qword [rcx + 0x20], rax
mov rcx, qword [r15 + 0x30]
mov rax, qword [rbx + 0x88]
mov qword [rcx + 0x10], rax
mov rax, qword [r15 + 0x30]
mov dword [rax + 8], 1
mov qword [rsp + 0x50], rdi
mov rcx, qword [rsi + 0x10]
mov r10, qword [rcx]
lea rax, [r15 + 0x40]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9d, reloc.ODBC32.dll_SQLNumResultCols
mov r8, qword [rbx + 0x20]
mov rdx, r14
call qword [r10]
mov rax, qword [rbx + 0x88]
mov qword [r15 + 0x38], rax
mov rax, qword [rbx + 0x28]
mov qword [r15 + 0x52], rax
mov rax, qword [rbx + 0x30]
mov qword [r15 + 0x5a], rax
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x30], rdi
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140225dd2
jns 0x140225dc4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140225dd2
mov edi, 0xfffffffe
jmp 0x140225dd2
mov eax, edi
mov edi, 0xfffffffe
test ecx, ecx
cmove eax, edi
mov edi, eax
mov rdx, r13
mov rcx, qword [rsi + 0x28]
call fcn.140198c80
call fcn.1400303b0
mov qword [rbx + 0x18], rax
test rbx, rbx
je 0x140225e05
lock xadd dword [rbx + 8], r12d
cmp r12d, 1
jne 0x140225e05
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov edx, r12d
call qword [rax]
mov eax, edi
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret