Function at 0x180005370
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x60
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [rdi + 0xe4]
mov ebp, 1
mov esi, eax
cmp edx, 3
je 0x1800053f1
xor r15d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [rdi + 0x208], ebp
je 0x1800053d6
mov eax, ebx
and eax, 0xfff
cmp eax, 0xfff
jne 0x1800053c7
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
inc ebx
jmp 0x1800053a3
mov eax, ebx
and eax, 0x3f
cmp al, 0x3f
jne 0x1800053d2
pause
inc ebx
jmp 0x1800053a3
mov eax, dword [rdi + 0xe4]
cmp eax, ebp
je 0x180005409
mov eax, dword [rdi + 0xe4]
test eax, eax
je 0x180005409
mov dword [rdi + 0x208], r15d
mov ecx, 0x139f
mov dword [rdi + 0xdc], ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000568a
mov dword [rdi + 0xe4], 2
mov dword [rdi + 0x208], r15d
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x1800054fd
cmp esi, dword [rdi + 0xd8]
je 0x1800054e9
mov rcx, qword [rdi + 0x260]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rdi + 0xd0]
mov qword [rsp + 0x80], rax
mov r9d, 0xffffffff
mov dword [rsp + 0x20], 0x1cff
xor r8d, r8d
lea rdx, [rsp + 0x80]
mov ecx, ebp
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebp
jne 0x1800054c5
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x180005452
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180005492
jmp 0x180005452
test eax, eax
je 0x1800054e2
cmp eax, 0x102
je 0x1800056b5
cmp eax, 0xffffffff
jne 0x1800056aa
jmp 0x1800056c0
mov rcx, qword [rdi + 0xd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xd0], r15
mov dword [rdi + 0xd8], r15d
mov eax, dword [rdi + 0xe0]
mov qword [rsp + 0x88], r14
test eax, eax
je 0x18000553a
cmp dword [rdi + 0xac], r15d
je 0x180005533
mov rcx, qword [rdi + 0xb0]
lea rdx, [0x1800758a0]
xor r9d, r9d
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rdi + 0xe0], r15d
cmp dword [rdi + 0xa0], r15d
je 0x180005553
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, r15d
xchg dword [rdi + 0x20], eax
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x18000556c
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov qword [rdi + 0xb8], r15
mov rcx, qword [rdi + 0xb0]
mov rsi, 0xffffffffffffffff
cmp rcx, rsi
je 0x18000559b
mov edx, ebp
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0xb0], rsi
lea rcx, [rdi + 0x2c0]
call fcn.1800060e0
lea rcx, [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x260]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x268]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 0x238]
call fcn.180001e30
lea rcx, [rdi + 0x110]
call fcn.180001b80
mov rax, qword [rdi + 0x100]
lea rdx, [rax - 0x18]
mov r14, qword [rdx]
cmp dword [rdx + 8], r15d
je 0x18000564d
cmp dword [rdx + 0x10], r15d
jge 0x180005627
cmp dword [rax - 0xc], r15d
jl 0x18000569f
mov dword [rax - 0x10], r15d
mov rax, qword [rdi + 0x100]
mov byte [rax], r15b
jmp 0x18000564d
lock xadd dword [rdx + 0x10], esi
sub esi, ebp
jg 0x180005639
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rdi + 0x100], rax
mov rcx, qword [rdi + 0x98]
mov word [rdi + 0x108], r15w
mov dword [rdi + 0x270], r15d
mov dword [rdi + 0xe4], 3
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rdi + 0x210]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, qword [rsp + 0x88]
mov eax, ebp
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.180001b20
int3
mov ecx, 0x80004005
call fcn.180001b20
int3
mov ecx, 0x5b4
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x80004005
call fcn.180001b20
int3