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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, dword [rdx + 0x58]
mov rbp, rcx
mov rbx, rdx
test ah, 1
je 0x45fbf1
test eax, 0x20000
jne 0x45fbd0
lea rsi, [rbx + 0xc0]
mov edx, eax
lea rcx, [0x004e5980]
or edx, 0x80000
test eax, 0x100000
mov qword [rbx + 0xc0], 0
mov dword [rbx + 0x58], edx
mov qword [rbx + 0xc8], 0
lea rdi, [rbx + 0x80]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x50], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
je 0x45faea
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x45fc70
or rax, 1
mov qword [rbx + 0xd8], rax
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x4c], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x110]
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x45fb72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x45fc12
mov edx, dword [rbx + 0x58]
mov eax, dword [rbx + 0x78]
mov ecx, edx
add eax, 1
or ecx, 0x20000
and edx, 0x100000
mov dword [rbx + 0x58], ecx
mov dword [rbx + 0x78], eax
je 0x45fb69
cmp qword [rbx + 0xf8], 0xffffffffffffffff
je 0x45fc95
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, dword [rbx + 0x58]
mov eax, dword [rbx + 0x78]
mov ecx, edx
add eax, 1
or ecx, 0x20000
test edx, 0x40000
je 0x45fb4d
mov esi, dword [rsp + 0x48]
mov dword [rbx + 0x78], eax
mov rax, qword [rbp + 0x48]
mov dword [rbx + 0x58], ecx
mov qword [rbx + 0xe8], 0
test rax, rax
mov qword [rbx + 0xc8], rsi
je 0x45fd03
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cae28]
mov r8d, 0x1e8
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
jmp 0x45fa75
lea rdx, str.src_win_tcp.c
lea rcx, [0x004cae00]
mov r8d, 0x1e7
call fcn.0048c6c0
mov eax, dword [rbx + 0x58]
jmp 0x45fa6a
mov rsi, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rsi
test eax, eax
jle 0x45fd13
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
je 0x45fd20
mov rdx, qword [rax + 0x68]
mov qword [rbx + 0xe8], rdx
mov qword [rax + 0x68], rdi
mov qword [rbp + 0x48], rdi
add dword [rbx + 0x78], 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdx, str.src_win_tcp.c
lea rcx, str.req__event_handle
mov r8d, 0x205
call fcn.0048c6c0
mov rax, qword [rbx + 0xf0]
jmp 0x45fadf
mov rdx, qword [rbx + 0xf0]
lea rcx, [rbx + 0xf8]
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0xffffffff
mov r9, rdi
lea r8, [0x00460120]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x45fb69
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
test eax, eax
jle 0x45fd30
call rsi
movzx eax, ax
or eax, 0x80070000
cdqe
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x48]
mov qword [rbx + 0xe8], 0
test rax, rax
jne 0x45fbb4
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x45fb69
call rsi
cdqe
jmp 0x45fc2f
mov qword [rbx + 0xe8], rdi
mov qword [rbp + 0x48], rdi
jmp 0x45fc61
call rsi
cdqe
jmp 0x45fce4