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

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [esp + 0x4c]
push 0x10
lea eax, [esp + 0x26]
push eax
lea eax, [esi + 4]
mov word [esp + 0x28], 0x26
call fcn.004b22d0
test al, al
je 0x4b5c8a
mov eax, dword [esi + 0x294]
test eax, eax
push ebx
push edi
mov word [esp + 0x18], 2
je 0x4b5a8d
mov edx, dword [esi + 0x298]
xor eax, eax
test edx, edx
jbe 0x4b5a8d
mov edi, dword [esi + 0x290]
mov ecx, edi
lea ecx, [ecx]
cmp dword [ecx], 0
jne 0x4b5a9c
inc eax
add ecx, 4
cmp eax, edx
jb 0x4b5a80
xor eax, eax
test eax, eax
mov edi, eax
je 0x4b5c88
push ebp
jmp 0x4b5aa5
mov eax, dword [edi + eax*4]
jmp 0x4b5a8f
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4b5aaf
mov dword [esp + 0x14], edi
jmp 0x4b5aec
mov ecx, dword [edi + 0xa4]
test ecx, ecx
jne 0x4b5ae8
mov ebx, dword [esi + 0x298]
mov eax, dword [edi + 0xa8]
xor edx, edx
div ebx
inc edx
lea ebx, [ebx]
cmp edx, ebx
jae 0x4b5ae8
mov eax, dword [esi + 0x290]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4b5ae3
mov ecx, eax
inc edx
test ecx, ecx
je 0x4b5ad0
mov dword [esp + 0x14], ecx
mov al, byte [edi + 0x30]
test al, al
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jne 0x4b5bb8
push 0x10
lea edx, [esp + 0x42]
push edi
push edx
call fcn.00552af0
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x5a], eax
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x14]
add esp, 0xc
inc edx
test eax, eax
mov dword [edi + 0x2c], edx
jne 0x4b5b8a
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4b5b59
push 0x10
mov dword [esp + 0x24], eax
mov cx, word [edi + 0x20]
movzx eax, word [esp + 0x30]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x288]
push 0
mov word [esp + 0x2a], cx
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4b5bb8
movzx edx, word [esp + 0x2c]
push 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x288]
mov dword [esp + 0x28], eax
mov ax, word [edi + 0x28]
push 0
mov word [esp + 0x2a], ax
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
jmp 0x4b5bb2
movzx ecx, word [esp + 0x2c]
push 0x10
mov dword [esp + 0x24], eax
mov dx, word [edi + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0x288]
push 0
mov word [esp + 0x2a], dx
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, dword [edi + 0x98]
dec ebx
js 0x4b5c7b
mov ebp, ebx
lea ecx, [ebx + 1]
imul ebp, ebp, 0x7fe0
mov dword [esp + 0x10], ecx
cmp ebx, dword [edi + 0x98]
jae 0x4b5c91
mov esi, dword [edi + 0x94]
push 0
add esi, ebp
call fcn.005514a0
sub eax, dword [esi + 0x7fdc]
add esp, 4
cmp eax, 0x3c
jle 0x4b5c5f
push edi
push str.Removing_timeouted_pending_packet_for__s_n
call fcn.00451d70
mov ecx, dword [esp + 0x60]
mov edx, dword [ecx]
xor eax, eax
mov ax, word [esi + 0xe]
add esp, 8
push esi
push eax
lea eax, [esi + 0x10]
push eax
xor eax, eax
mov ax, word [esi + 0xc]
push eax
push edi
push 0
call dword [edx]
mov eax, dword [edi + 0x98]
cmp dword [esp + 0x10], eax
ja 0x4b5c91
sub eax, ebx
dec eax
je 0x4b5c59
mov ecx, dword [edi + 0x94]
imul eax, eax, 0x7fe0
add ecx, ebp
push eax
lea edx, [ecx + 0x7fe0]
push edx
push ecx
call fcn.00551540
add esp, 0xc
dec dword [edi + 0x98]
mov edx, dword [esp + 0x10]
dec ebx
dec edx
sub ebp, 0x7fe0
test ebx, ebx
mov dword [esp + 0x10], edx
jge 0x4b5bd4
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4b5aa1
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x44
ret 4
push 0x80070057
call fcn.004010c0
int3