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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rcx
mov dword [rcx + 0x58], 0x10000
mov ecx, 0x10000
call fcn.140283754
mov qword [rdi + 0x50], rax
xor ecx, ecx
call fcn.14028c13c
xor ebp, ebp
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x30], 1
mov rcx, qword [rdi + 0xd8]
call fcn.14018c780
test eax, eax
je 0x14021520a
cmp eax, 0xfffffffd
jne 0x14021518b
mov rcx, qword [rdi + 0xd8]
cmp byte [rcx + 0xa8], 0
jne 0x140215145
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rax, qword [rdi + 0xd8]
cmp dword [rax + 0x9c], 0
jle 0x1402151bd
mov rbx, rax
call fcn.140067020
mov rcx, rax
call fcn.140064780
xor edx, edx
div dword [rbx + 0x9c]
mov esi, dword [rbx + 0x98]
add esi, edx
jmp 0x1402151c3
mov esi, dword [rax + 0x98]
mov ebx, ebp
test esi, esi
jle 0x1402151f1
nop dword [rax]
mov ecx, 0x64
call sub.KERNEL32.dll_Sleep
add ebx, 0x64
mov rcx, qword [rdi + 0xd8]
call fcn.14018c780
test eax, eax
je 0x14021520a
cmp ebx, esi
jl 0x1402151d0
mov r8b, 1
xor edx, edx
mov rcx, qword [rdi + 0xd8]
call fcn.14018bc40
test eax, eax
jne 0x14021514d
mov rax, qword [rdi + 0xd8]
mov rcx, qword [rax + 0xb8]
mov rax, qword [rcx]
call qword [rax + 0x20]
lea rcx, [rdi + 0x60]
call fcn.14013ba50
mov eax, dword [rdi + 0x80]
cmp eax, 1
jg 0x140215241
mov ecx, 0x1f4
call sub.KERNEL32.dll_Sleep
jmp 0x140215130
mov rbx, rbp
mov rax, qword [rdi + 0xd8]
cmp qword [rax + 0xf8], rbp
jbe 0x14021527d
mov dword [rsp + 0x90], ebp
mov rax, qword [rax + 0xf8]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x90], 1
lea rbx, [rsp + 0x90]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
mov rdx, qword [rdi + 0x78]
mov ecx, dword [rdi + 0x80]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x140215130
test rbx, rbx
je 0x1402152d7
mov rcx, qword [rdi + 0xd8]
mov rdx, rbx
mov rcx, qword [rcx + 0xf8]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1402152d7
xor edx, edx
mov rcx, qword [rdi + 0xd8]
call fcn.14018c990
jmp 0x140215130
call fcn.1400303b0
mov rcx, qword [rdi + 0xd8]
mov rcx, qword [rcx + 0xb8]
call fcn.1400f70d0
test al, al
je 0x140215318
mov rdx, qword [rdi + 0xd8]
mov rcx, qword [rdx + 0xb8]
mov rax, qword [rcx]
mov rdx, qword [rdx + 0xf8]
call qword [rax + reloc.ODBC32.dll_SQLFreeStmt]
test eax, eax
je 0x140215130
jmp 0x14021538e
mov rcx, qword [rdi + 0xd8]
xor r9d, r9d
mov r8d, dword [rdi + 0x58]
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rcx + 0xf8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140215371
mov rdx, qword [rdi + 0xd8]
mov rcx, qword [rdx + 0xb8]
mov r10, qword [rcx]
movsxd r9, eax
mov r8, qword [rdi + 0x50]
mov rdx, qword [rdx + 0xf8]
call qword [r10 + reloc.ODBC32.dll_SQLAllocHandle]
test eax, eax
je 0x140215130
cmp eax, 0xfffffff7
je 0x140215130
jmp 0x14021538e
jns 0x140215386
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140215130
jmp 0x14021538e
test eax, eax
jne 0x140215130
cmp dword [0x1404522e0], 3
jl 0x1402153f5
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_sirecvthread.cpp
lea rcx, [rsp + 0x68]
call fcn.14001c950
nop
lea rdx, str.recv_check_error_set_connect_state
lea rcx, [rsp + 0x40]
call fcn.14001c840
nop
mov dword [rsp + 0x20], 3
mov r9d, 0xe0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, [0x1404522e0]
call fcn.140188520
nop
lea rcx, [rsp + 0x40]
call fcn.14001d440
nop
lea rcx, [rsp + 0x68]
call fcn.14001d440
xor edx, edx
mov rcx, qword [rdi + 0xd8]
call fcn.14018c990
jmp 0x140215130