Function at 0x140223b50
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rdi, rcx
xor ecx, ecx
call fcn.14028c13c
mov qword [rdi + 0x50], rax
mov rax, qword [rdi + 0x68]
cmp byte [rax + 9], 0
jne 0x1402240d2
xor ebx, ebx
nop
mov qword [rsp + 0x38], 2
mov rcx, rdi
call fcn.140223300
cmp eax, 0x64
jne 0x140223c3d
cmp dword [0x140452330], 4
jl 0x140223c2a
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_sitcpserverrecvthread.cpp
lea rcx, [rbp - 0x80]
call fcn.14001c950
nop
lea rdx, str.no_socket_so_sleep_2000
lea rcx, [rsp + 0x58]
call fcn.14001c840
nop
mov dword [rsp + 0x20], 4
mov r9d, 0x136
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x58]
lea rcx, [0x140452330]
call fcn.1401885a0
nop
lea rcx, [rsp + 0x58]
call fcn.14001d440
nop
lea rcx, [rbp - 0x80]
call fcn.14001d440
lea rcx, [rdi + 0x78]
mov edx, 0x7d0
call fcn.1401b2990
jmp 0x1402240c4
lea r14, [rdi + 0x98]
mov rcx, r14
call fcn.14013ba50
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi + 0xb0]
mov ecx, dword [rdi + 0xb8]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
cmp eax, 0xffffffff
jne 0x140223d1a
inc dword [rdi + 0x70]
mov rcx, rdi
call fcn.1402239b0
cmp dword [0x140452330], 3
jl 0x1402240c4
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_sitcpserverrecvthread.cpp
lea rcx, [rbp - 0x30]
call fcn.14001c950
nop
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
lea r8d, [rsi + 0xb]
lea rcx, [rbp - 0x58]
call fcn.14001c580
nop
lea rdx, str.select_error:
lea rcx, [rbp + 0x188]
call fcn.14001c950
nop
lea rdx, [rbp - 0x58]
mov rcx, rax
call fcn.14001d850
mov rdx, rax
mov dword [rsp + 0x20], 3
mov r9d, 0x144
lea r8, [rbp - 0x30]
lea rcx, [0x140452330]
call fcn.140188520
nop
lea rcx, [rbp + 0x188]
call fcn.14001d440
nop
lea rcx, [rbp - 0x58]
call fcn.14001d440
nop
lea rcx, [rbp - 0x30]
jmp 0x1402240bf
mov dword [rdi + 0x70], ebx
test eax, eax
jle 0x1402240c4
mov r13d, eax
mov byte [rsp + 0x30], 0
mov r12d, ebx
mov rdx, qword [r14]
mov rax, qword [r14 + 8]
sub rax, rdx
sar rax, 3
test rax, rax
je 0x140223f61
mov r15, rbx
nop word [rax + rax]
test esi, esi
je 0x140223f5f
mov rbx, qword [rdx + r15]
mov rdx, rbx
mov rcx, r14
call fcn.14013ba30
test al, al
je 0x140223f3e
dec esi
mov rcx, qword [rdi + 0x60]
call fcn.1400f70d0
test al, al
jne 0x140223eb5
xor r9d, r9d
mov r8d, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140223dd2
mov rcx, qword [rdi + 0x60]
mov r10, qword [rcx]
movsxd r9, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, qword [rdi + 0x88]
mov rdx, rbx
call qword [r10 + reloc.ODBC32.dll_SQLAllocHandle]
test eax, eax
je 0x140223f24
cmp eax, 0xfffffff7
jmp 0x140223ec9
cmp dword [0x140452330], 2
jl 0x140223ecb
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_sitcpserverrecvthread.cpp
lea rcx, [rbp + 0x70]
call fcn.14001c950
nop
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
mov r8d, 0xa
lea rcx, [rbp + 0x48]
call fcn.14001c580
nop
lea rdx, str._error:
lea rcx, [rbp + 0x20]
call fcn.14001c950
nop
mov rdx, rbx
lea rcx, [rbp - 8]
call fcn.14001cbd0
nop
lea rdx, str.recv_socket:
lea rcx, [rbp + 0x1b0]
call fcn.14001c950
nop
lea rdx, [rbp - 8]
mov rcx, rax
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp + 0x20]
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp + 0x48]
call fcn.14001d850
mov rdx, rax
mov dword [rsp + 0x20], 2
mov r9d, 0x16a
lea r8, [rbp + 0x70]
lea rcx, [0x140452330]
call fcn.140188520
nop
lea rcx, [rbp + 0x1b0]
call fcn.14001d440
nop
lea rcx, [rbp - 8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x20]
call fcn.14001d440
nop
lea rcx, [rbp + 0x48]
call fcn.14001d440
nop
lea rcx, [rbp + 0x70]
call fcn.14001d440
jmp 0x140223ecb
mov rcx, qword [rdi + 0x60]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [rax + reloc.ODBC32.dll_SQLFreeStmt]
test eax, eax
je 0x140223f24
mov rcx, qword [rdi + 0x58]
mov rdx, rbx
mov rcx, qword [rcx + 8]
call fcn.1401990b0
mov qword [rsp + 0x40], rbx
lea rdx, [rdi + 0x138]
lea rcx, [rsp + 0x48]
call fcn.1401bae70
nop
lea rcx, [rdi + 0xf0]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140223f0d
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x140223f18
lea r8, [rsp + 0x40]
call fcn.140003e00
nop
lea rcx, [rsp + 0x48]
call fcn.1401baeb0
jmp 0x140223f3e
xor ecx, ecx
call fcn.14028c13c
mov rcx, qword [rdi + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, qword [rcx + 8]
call fcn.140199250
inc r12d
add r15, 8
mov rdx, qword [r14]
mov rcx, qword [r14 + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, r12d
cmp rax, rcx
jb 0x140223d50
xor ebx, ebx
cmp dword [0x140452330], 4
jl 0x1402240c4
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_sitcpserverrecvthread.cpp
lea rcx, [rbp + 0x160]
call fcn.14001c950
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0x138]
call fcn.14001caf0
nop
lea rdx, str._read_data_cost:
lea rcx, [rbp + 0x110]
call fcn.14001c950
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp + 0xe8]
call fcn.14001caf0
nop
lea rdx, str.sockets_cost:
lea rcx, [rbp + 0xc0]
call fcn.14001c950
nop
mov r8d, 0xa
mov edx, r13d
lea rcx, [rbp + 0x98]
call fcn.14001c580
nop
lea rdx, str.Recv_Thread_deal
lea rcx, [rbp + 0x1d8]
call fcn.14001c950
nop
lea rdx, [rbp + 0x98]
mov rcx, rax
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp + 0xc0]
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp + 0xe8]
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp + 0x110]
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp + 0x138]
call fcn.14001d850
mov rdx, rax
mov dword [rsp + 0x20], 4
mov r9d, 0x189
lea r8, [rbp + 0x160]
lea rcx, [0x140452330]
call fcn.140188520
nop
lea rcx, [rbp + 0x1d8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x98]
call fcn.14001d440
nop
lea rcx, [rbp + 0xc0]
call fcn.14001d440
nop
lea rcx, [rbp + 0xe8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x110]
call fcn.14001d440
nop
lea rcx, [rbp + 0x138]
call fcn.14001d440
nop
lea rcx, [rbp + 0x160]
call fcn.14001d440
mov rax, qword [rdi + 0x68]
cmp byte [rax + 9], 0
je 0x140223bb0
mov rcx, rdi
call fcn.140223300
mov rbx, qword [rdi + 0x98]
mov rax, qword [rdi + 0xa0]
sub rax, rbx
sar rax, 3
test rax, rax
je 0x140224142
cmp rbx, qword [rdi + 0xa0]
je 0x140224134
nop dword [rax]
mov byte [rsp + 0x31], 1
mov rcx, qword [rdi + 0x60]
mov rax, qword [rcx]
lea r8, [rsp + 0x31]
mov rdx, qword [rbx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x31], 0
je 0x140224127
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
add rbx, 8
cmp rbx, qword [rdi + 0xa0]
jne 0x140224100
mov rax, qword [rdi + 0x98]
mov qword [rdi + 0xa0], rax
mov rcx, qword [rdi + 0x68]
mov rdx, rdi
mov rcx, qword [rcx + 0x160]
call fcn.1401994d0
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret