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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea rbp, [rcx + 0x23c]
mov r14d, edx
mov rbx, rcx
mov esi, r15d
cmp dword [rbp], r15d
jg 0x140064979
or r13, 0xffffffffffffffff
lea edi, [r15 + 2]
lea r12d, [r15 + 1]
test edx, edx
je 0x1400646e9
cmp qword [rcx + 0x290], r15
je 0x1400643ce
cmp dword [rcx + 0x12c4], r15d
jne 0x1400643ce
mov r8d, dword [rcx + 0x258]
mov r9d, edi
mov rdx, qword [rcx + 0x250]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x250]
cmp eax, 5
jl 0x140064399
cmp byte [rcx], 0x16
movsx eax, byte [rcx + 5]
jne 0x140064399
cmp byte [rcx + 1], r12b
jb 0x140064399
cmp eax, edi
jbe 0x1400643c7
mov rcx, qword [rbx + 0x290]
call fcn.1401332e0
mov rax, qword [rbx + 0x1f0]
mov qword [rbx + 0x290], r15
test rax, rax
je 0x1400643c7
mov r8, qword [rbx + 0x228]
mov edx, r13d
mov rcx, rbx
call rax
mov dword [rbx + 0x12c4], r12d
mov dword [rsp + 0x80], 0x1c
cmp qword [rbx + 0x290], r15
je 0x1400645ec
mov rcx, qword [rbx + 0x2a0]
mov edx, reloc.WS2_32.dll_ntohs
call fcn.140095600
mov rax, qword [rbx + 0x2b0]
lea rcx, [rbx + 0x98]
xor r9d, r9d
mov r8d, dword [rax + 0x10]
mov rdx, qword [rax]
sub r8d, dword [rax]
add rdx, 0x2c0
lea rax, [rsp + 0x80]
add rdx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.WS2_32.dll_recvfrom]
movsxd rsi, eax
test eax, eax
jle 0x1400645b8
mov rdx, qword [rbx + 0x2b0]
add qword [rdx], rsi
mov rcx, qword [rbx + 0x290]
cmp dword [rbx + 0x12c0], r15d
jne 0x1400644e9
call fcn.140133220
test eax, eax
je 0x1400644db
cmp eax, r12d
je 0x140064495
mov rcx, qword [rbx + 0x290]
mov edx, eax
call fcn.140133600
cmp eax, r12d
jne 0x1400645b0
mov dword [rbx + 0x288], r12d
mov esi, r13d
jmp 0x1400645b8
mov rax, qword [rbx + 0x1f0]
mov dword [rbx + 0x12c0], r12d
mov dword [rbx + 0x28c], r12d
test rax, rax
je 0x1400645b0
mov r8, qword [rbx + 0x228]
mov edx, r13d
mov rcx, rbx
call rax
jmp 0x1400645b0
mov r8d, 0x1000
lea rdx, [0x140203120]
mov ecx, eax
call fcn.140098a50
call fcn.140098cf0
test eax, eax
jne 0x1400644c7
jmp 0x1400645b8
movsxd rax, dword [rbx + 0x248]
mov r8d, dword [rbx + 0x258]
mov rdx, rax
add rdx, qword [rbx + 0x250]
sub r8d, eax
call fcn.140133de0
test eax, eax
jle 0x140064594
add dword [rbx + 0x248], eax
mov ecx, dword [rbx + 0x258]
cmp ecx, dword [rbx + 0x248]
jne 0x140064588
mov eax, dword [rbx + 0x278]
add ecx, 0x1000
cmp ecx, eax
jl 0x14006453c
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rdi, qword [rbx + 0x250]
mov dword [rbx + 0x258], ecx
movsxd rdx, ecx
mov rcx, rdi
call fcn.140169874
mov qword [rbx + 0x250], rax
test rax, rax
je 0x140064991
cmp rax, rdi
je 0x140064588
mov r9, qword [rbx + 0x218]
test r9, r9
je 0x140064588
mov rdx, qword [rbx + 0x228]
sub rax, rdi
mov r8, rax
mov rcx, rbx
call r9
mov rcx, qword [rbx + 0x290]
jmp 0x1400644e9
jns 0x1400645b8
mov rcx, qword [rbx + 0x290]
mov edx, eax
call fcn.140133600
mov rax, qword [rbx + 0x2b8]
cmp qword [rax], r15
jbe 0x1400645b8
mov rcx, rbx
call fcn.140064210
mov rax, qword [rbx + 0x2b0]
cmp qword [rax], r15
jne 0x1400646e9
mov rcx, qword [rbx + 0x2a0]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
call fcn.140095630
mov rax, qword [rbx + 0x2b0]
mov qword [rax], r15
jmp 0x1400646e9
movsxd rax, dword [rbx + 0x248]
lea rdi, [rbx + 0x98]
mov r8d, dword [rbx + 0x258]
mov rdx, rax
add rdx, qword [rbx + 0x250]
sub r8d, eax
mov rcx, qword [rbx + 0x50]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp word [rdi], 0x17
mov esi, eax
jne 0x140064661
mov rax, qword [rdi + 8]
cmp rax, qword [0x140200190]
jne 0x140064661
mov eax, dword [rdi + 0x10]
cmp eax, dword [0x140200198]
jne 0x140064661
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rdi + 4], eax
mov eax, 2
mov word [rdi], ax
test esi, esi
jle 0x1400646e9
add dword [rbx + 0x248], esi
jmp 0x1400646e9
cmp dword [rbp], r15d
jg 0x1400646ef
movsxd rdx, dword [rbx + 0x244]
mov r9d, dword [rbx + 0x248]
cmp edx, r9d
je 0x1400646ef
test r9d, r9d
je 0x1400646ef
mov r10, qword [rbx + 0x1e8]
mov dword [rsp + 0x90], r15d
test r10, r10
je 0x1400646e9
lea rax, [rbx + 0x228]
mov qword [rsp + 0x30], rbp
lea rcx, [rbx + 0x208]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x90]
sub r9d, edx
mov rcx, rbx
add rdx, qword [rbx + 0x250]
call r10
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x1400646ef
add dword [rbx + 0x244], eax
cmp qword [rbx + 0x50], r13
jne 0x140064671
mov eax, dword [rbx + 0x248]
cmp dword [rbx + 0x244], eax
jne 0x140064704
mov qword [rbx + 0x244], r15
test esi, esi
jg 0x14006485d
test r14d, r14d
je 0x14006485d
cmp esi, r13d
jne 0x14006472b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x140064979
mov rcx, rbx
call fcn.1400636cc
mov rcx, qword [rbx + 0x50]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
mov qword [rbx + 0x50], r13
call fcn.1400636cc
mov rdi, qword [rbx + 0x290]
test rdi, rdi
je 0x140064796
mov rcx, rdi
call fcn.1401332e0
mov rcx, qword [rbx + 0x270]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x270]
xor r8d, r8d
mov edx, r12d
mov qword [rbx + 0x290], r15
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov qword [rbx + 0x12d8], r15
mov dword [rbx + 0x12d0], r15d
test rdi, rdi
je 0x1400647d7
cmp dword [rbx + 0x28c], r15d
jne 0x140064803
mov rax, qword [rbx + 0x1f0]
test rax, rax
je 0x1400647cc
mov r8, qword [rbx + 0x228]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x28c], r15d
je 0x14006481b
jmp 0x140064803
cmp dword [rbx + 0x240], r15d
jg 0x140064803
mov rax, qword [rbx + 0x1f0]
test rax, rax
je 0x1400647fa
mov r8, qword [rbx + 0x228]
xor edx, edx
mov rcx, rbx
call rax
cmp dword [rbx + 0x240], r15d
jle 0x14006481b
mov rax, qword [rbx + 0x1f8]
test rax, rax
je 0x14006481b
mov rdx, qword [rbx + 0x228]
mov rcx, rbx
call rax
mov rcx, qword [rbx + 0x250]
mov dword [rbx + 0x28c], r15d
mov dword [rbx + 0x240], r15d
test rcx, rcx
je 0x140064979
lea rax, [0x140214120]
cmp rcx, rax
je 0x14006484a
call fcn.1401630c0
mov qword [rbx + 0x250], r15
mov dword [rbx + 0x258], r15d
jmp 0x140064979
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
je 0x1400648f9
mov eax, dword [rbx + 0x248]
mov r9, qword [rbx + 0x250]
sub eax, ecx
movsxd r8, eax
movsxd rax, dword [rbx + 0x258]
lea rdi, [r9 + rcx]
je 0x1400648c4
test r9, r9
jne 0x1400648a2
call fcn.140162e7c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14016299c
jmp 0x1400648c4
test rdi, rdi
je 0x140064890
cmp rax, r8
jae 0x1400648b9
call fcn.140162e7c
mov dword [rax], 0x22
jmp 0x14006489b
mov rdx, rdi
mov rcx, r9
call fcn.14015cc40
mov eax, dword [rbx + 0x244]
sub dword [rbx + 0x248], eax
mov rax, qword [rbx + 0x218]
mov dword [rbx + 0x244], r15d
test rax, rax
je 0x1400648f9
sub rdi, qword [rbx + 0x250]
mov rcx, rbx
mov rdx, qword [rbx + 0x228]
mov r8, rdi
call rax
mov ecx, dword [rbx + 0x258]
mov eax, ecx
sub eax, dword [rbx + 0x248]
cmp eax, 0x400
jge 0x140064979
mov eax, dword [rbx + 0x278]
test eax, eax
je 0x14006491c
cmp ecx, eax
jge 0x140064979
add ecx, 0x1000
cmp ecx, eax
jl 0x14006492d
test eax, eax
cmove eax, ecx
mov ecx, eax
mov rdi, qword [rbx + 0x250]
mov dword [rbx + 0x258], ecx
movsxd rdx, ecx
mov rcx, rdi
call fcn.140169874
mov qword [rbx + 0x250], rax
test rax, rax
je 0x1400649d7
cmp rax, rdi
je 0x140064979
mov r9, qword [rbx + 0x218]
test r9, r9
je 0x140064979
mov rdx, qword [rbx + 0x228]
sub rax, rdi
mov r8, rax
mov rcx, rbx
call r9
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x46f
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006ddcc
mov r8d, edi
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14015e4d8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibAsyncSocket.c
mov edi, 0x51d
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.14006ddcc
mov r8d, edi
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14015e4d8
int3