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

Disassembly:
push 0xb4
mov eax, 0x59a77c
call fcn.0055d8e8
mov esi, ecx
cmp byte [esi + 0x61], 0
jne 0x42e9e1
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 0x42e6a9
cmp dword [esi + 0x118], 0
je 0x42e6ad
mov byte [ebp - 0x5a], 1
and dword [ebp - 0x60], 0
test eax, eax
jle 0x42e70e
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 0x42e76f
sub dword [esi + 0xf4], edi
mov eax, dword [esi + 0xf4]
add dword [ebp - 0x60], edi
test eax, eax
jle 0x42e705
mov ecx, dword [esi + 0x100]
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00559bc0
add esp, 0xc
cmp dword [esi + 0xf4], 0
jg 0x42e6b5
cmp dword [esi + 0x118], 0
je 0x42e9b3
lea ecx, [ebp - 0x9c]
xor ebx, ebx
push ecx
lea ecx, [esi + 0x108]
call fcn.00414313
mov ecx, dword [eax]
test ecx, ecx
je 0x42e73d
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e73d
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.0041432b
cmp edi, dword [eax + 8]
setne al
test al, al
je 0x42e9b3
test ebx, ebx
jne 0x42e824
xor eax, eax
jmp 0x42e826
je 0x42e786
cmp edi, 0xffffffff
jne 0x42e9b3
cmp ebx, 0x2733
je 0x42e9b3
lea ecx, [ebp - 0x34]
call fcn.00404ee2
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.00404abc
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00407163
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.0040412f
push 0
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.0040412f
cmp byte [esi + 0x61], 0
jne 0x42e80f
cmp dword [esi + 0x14], 0
je 0x42e80f
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.0040540c
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.0040412f
jmp 0x42e9b3
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 0x42e866
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 0x42e871
add dword [edi + 4], eax
sub dword [edi + 8], eax
add dword [ebp - 0x60], eax
cmp dword [edi + 8], 0
jg 0x42e834
jmp 0x42e924
je 0x42e889
cmp eax, 0xffffffff
jne 0x42e880
cmp ecx, 0x2733
jne 0x42e889
mov byte [ebp - 0x59], 0
jmp 0x42e924
lea ecx, [ebp - 0x58]
call fcn.00404ee2
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.00404abc
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.00404c2b
pop ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407163
push 0
push 1
lea ecx, [ebp - 0xc0]
call fcn.0040412f
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040412f
cmp byte [esi + 0x61], 0
jne 0x42e910
cmp dword [esi + 0x14], 0
je 0x42e910
sub esp, 0x24
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.0040540c
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.0040412f
cmp dword [edi + 8], 0
jne 0x42e992
test ebx, ebx
jne 0x42e932
xor eax, eax
jmp 0x42e934
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.00431b6d
push ecx
push ecx
mov ecx, esp
and dword [ecx], 0
and dword [ecx + 4], 0
test ebx, ebx
je 0x42e963
mov eax, dword [ebx]
test eax, eax
je 0x42e963
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.0042efbd
mov ecx, dword [eax]
cmp ebx, ecx
je 0x42e98a
test ecx, ecx
je 0x42e98a
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e98a
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
mov dword [ebp - 0x68], edi
jmp 0x42e995
mov edi, dword [ebp - 0x68]
cmp byte [ebp - 0x59], 0
je 0x42e9b3
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0x108]
call fcn.0041432b
cmp edi, dword [eax + 8]
jne 0x42e760
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5a], 0
je 0x42e9e1
cmp dword [esi + 0xf4], 0
jne 0x42e9e1
cmp dword [esi + 0x118], 0
jne 0x42e9e1
push dword [ebp - 0x60]
push esi
call dword [esi + 0xc]
pop ecx
pop ecx
call fcn.0055d897
ret