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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
jne 0x4b9bb5
cmp dword [esi + 8], ebx
jne 0x4b9bb5
movzx eax, word [esi + 6]
mov edx, 0x216
mov ebp, dword [esp + 0x18]
cmp ax, dx
mov edi, str.queue
mov ecx, str.file
mov ebx, eax
cmovne edi, ecx
test ebx, ebx
je 0x4b9b1f
xor ecx, ecx
mov eax, dword [0x5215b0]
cmp word [eax], cx
je 0x4b9ac1
push edi
push ebx
push str.Sending__dword__5_bytes_to__str__manager
call fcn.004b8a31
add esp, 0xc
xor eax, eax
push eax
push ebx
push ebp
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4b9b17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
xor edx, edx
mov eax, dword [0x5215b0]
cmp ecx, 0x2733
jne 0x4b9b9f
cmp word [eax], dx
je 0x4b9b00
push edi
push str.send___to__str__manager_returned_WSAEWOULDBLOCK
call fcn.004b8a31
pop ecx
pop ecx
cmp dword [esi + 0x1c], 0
je 0x4b9b50
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
mov eax, ecx
jmp 0x4b9b19
xor ecx, ecx
add ebp, eax
sub ebx, eax
jne 0x4b9aa8
mov eax, dword [0x5215b0]
xor ecx, ecx
cmp word [eax], cx
je 0x4b9b36
push 0x4c060e
call fcn.00413fa8
pop ecx
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4b9c6c
push edi
push esi
call fcn.004b973e
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
lea eax, [ebx + 0xc]
push eax
call fcn.00441cd2
pop ecx
mov edi, eax
test edi, edi
jne 0x4b9b67
mov eax, 0xc0c
jmp 0x4b9b4b
mov eax, dword [esi]
push ebx
mov dword [edi], eax
lea eax, [edi + 0xc]
push ebp
push eax
mov dword [edi + 4], ebx
call fcn.00442cc0
xor eax, eax
add esp, 0xc
mov dword [edi + 8], eax
mov ecx, dword [0x5215a4]
mov eax, dword [ecx]
test eax, eax
jne 0x4b9b93
mov dword [ecx], edi
jmp 0x4b9b1f
mov eax, ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4b9b91
mov dword [eax + 8], edi
jmp 0x4b9b1f
cmp word [eax], dx
je 0x4b9b60
push ecx
push edi
push str.send___to__str__manager_returned_error__dword__5
call fcn.004b8a31
add esp, 0xc
jmp 0x4b9b60
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4b9bc3
mov eax, dword [esi + 0x24]
mov byte [eax], 1
movzx eax, word [esi + 6]
push eax
mov eax, dword [esi + 0x24]
push dword [esp + 0x1c]
inc eax
push eax
call fcn.00442cc0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
add esp, 0xc
cmp dword [esi + 0x28], ebx
je 0x4b9bf6
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4b9c28
jmp 0x4b9b60
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4b9c0f
push dword [esi + 8]
call ebp
test eax, eax
je 0x4b9b60
xor eax, eax
push eax
mov eax, dword [0x50d234]
push dword [eax]
mov eax, dword [0x521598]
push dword [eax]
push dword [esi + 8]
call ebx
test eax, eax
je 0x4b9bff
xor ebx, ebx
test edi, edi
jne 0x4b9b42
jmp 0x4b9c64
cmp dword [esi + 8], 0
je 0x4b9c45
push dword [esi + 8]
call ebp
test eax, eax
je 0x4b9b60
cmp dword [esi + 0x34], 0
je 0x4b9c5d
push ebx
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b9b60
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x24]
cmp byte [eax], 1
je 0x4b9c32
xor eax, eax
jmp 0x4b9b4b