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

Disassembly:
push 0xb4
mov eax, 0x59a363
call fcn.0055d546
mov esi, ecx
cmp byte [esi + 0x61], 0
jne 0x42e61c
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xf4]
mov byte [ebp - 0x59], 1
mov byte [ebp - 0x5a], 0
test eax, eax
jg 0x42e2e4
cmp dword [esi + 0x118], 0
je 0x42e2e8
mov byte [ebp - 0x5a], 1
and dword [ebp - 0x60], 0
test eax, eax
jle 0x42e349
push 0
push dword [esi + 0xf4]
push dword [esi + 0x100]
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test edi, edi
jle 0x42e3aa
sub dword [esi + 0xf4], edi
mov eax, dword [esi + 0xf4]
add dword [ebp - 0x60], edi
test eax, eax
jle 0x42e340
mov ecx, dword [esi + 0x100]
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00559810
add esp, 0xc
cmp dword [esi + 0xf4], 0
jg 0x42e2f0
cmp dword [esi + 0x118], 0
je 0x42e5ee
lea ecx, [ebp - 0x9c]
xor ebx, ebx
push ecx
lea ecx, [esi + 0x108]
call fcn.00414251
mov ecx, dword [eax]
test ecx, ecx
je 0x42e378
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e378
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
lea ecx, [esi + 0x108]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], edi
push eax
call fcn.00414269
cmp edi, dword [eax + 8]
setne al
test al, al
je 0x42e5ee
test ebx, ebx
jne 0x42e45f
xor eax, eax
jmp 0x42e461
je 0x42e3c1
cmp edi, 0xffffffff
jne 0x42e5ee
cmp ebx, 0x2733
je 0x42e5ee
lea ecx, [ebp - 0x34]
call fcn.00404eb5
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.00404a8f
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00404bfe
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00407134
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.00404102
push 0
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.00404102
cmp byte [esi + 0x61], 0
jne 0x42e44a
cmp dword [esi + 0x14], 0
je 0x42e44a
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004053df
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00404102
jmp 0x42e5ee
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edi
mov edi, dword [eax + ecx*4]
jmp 0x42e4a1
mov eax, dword [edi]
add eax, dword [edi + 4]
push 0
push dword [edi + 8]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x6c], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], ecx
test eax, eax
jle 0x42e4ac
add dword [edi + 4], eax
sub dword [edi + 8], eax
add dword [ebp - 0x60], eax
cmp dword [edi + 8], 0
jg 0x42e46f
jmp 0x42e55f
je 0x42e4c4
cmp eax, 0xffffffff
jne 0x42e4bb
cmp ecx, 0x2733
jne 0x42e4c4
mov byte [ebp - 0x59], 0
jmp 0x42e55f
lea ecx, [ebp - 0x58]
call fcn.00404eb5
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 1
call fcn.00404a8f
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.00404bfe
pop ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407134
push 0
push 1
lea ecx, [ebp - 0xc0]
call fcn.00404102
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00404102
cmp byte [esi + 0x61], 0
jne 0x42e54b
cmp dword [esi + 0x14], 0
je 0x42e54b
sub esp, 0x24
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.004053df
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
push 0
push 1
mov byte [ebp - 0x59], 0
call fcn.00404102
cmp dword [edi + 8], 0
jne 0x42e5cd
test ebx, ebx
jne 0x42e56d
xor eax, eax
jmp 0x42e56f
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov edi, dword [ebp - 0x68]
dec ecx
mov eax, dword [eax + 4]
and ecx, edi
mov eax, dword [eax + ecx*4]
push dword [eax]
call fcn.004317a8
push ecx
push ecx
mov ecx, esp
and dword [ecx], 0
and dword [ecx + 4], 0
test ebx, ebx
je 0x42e59e
mov eax, dword [ebx]
test eax, eax
je 0x42e59e
mov eax, dword [eax]
mov dword [ecx], eax
lea eax, [ebp - 0x84]
mov dword [ecx + 8], edi
push eax
lea ecx, [esi + 0x108]
call fcn.0042ebf8
mov ecx, dword [eax]
cmp ebx, ecx
je 0x42e5c5
test ecx, ecx
je 0x42e5c5
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e5c5
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
mov dword [ebp - 0x68], edi
jmp 0x42e5d0
mov edi, dword [ebp - 0x68]
cmp byte [ebp - 0x59], 0
je 0x42e5ee
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0x108]
call fcn.00414269
cmp edi, dword [eax + 8]
jne 0x42e39b
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5a], 0
je 0x42e61c
cmp dword [esi + 0xf4], 0
jne 0x42e61c
cmp dword [esi + 0x118], 0
jne 0x42e61c
push dword [ebp - 0x60]
push esi
call dword [esi + 0xc]
pop ecx
pop ecx
call fcn.0055d4f5
ret