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

Disassembly:
push 0xb4
mov eax, 0x59a94f
call fcn.0055da28
mov esi, ecx
cmp byte [esi + 0x61], 0
jne 0x42eb14
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 0x42e7dc
cmp dword [esi + 0x118], 0
je 0x42e7e0
mov byte [ebp - 0x5a], 1
and dword [ebp - 0x60], 0
test eax, eax
jle 0x42e841
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 0x42e8a2
sub dword [esi + 0xf4], edi
mov eax, dword [esi + 0xf4]
add dword [ebp - 0x60], edi
test eax, eax
jle 0x42e838
mov ecx, dword [esi + 0x100]
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00559d00
add esp, 0xc
cmp dword [esi + 0xf4], 0
jg 0x42e7e8
cmp dword [esi + 0x118], 0
je 0x42eae6
lea ecx, [ebp - 0x9c]
xor ebx, ebx
push ecx
lea ecx, [esi + 0x108]
call fcn.00414447
mov ecx, dword [eax]
test ecx, ecx
je 0x42e870
mov ecx, dword [ecx]
test ecx, ecx
je 0x42e870
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.0041445f
cmp edi, dword [eax + 8]
setne al
test al, al
je 0x42eae6
test ebx, ebx
jne 0x42e957
xor eax, eax
jmp 0x42e959
je 0x42e8b9
cmp edi, 0xffffffff
jne 0x42eae6
cmp ebx, 0x2733
je 0x42eae6
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 0x42e942
cmp dword [esi + 0x14], 0
je 0x42e942
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 0x42eae6
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 0x42e999
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 0x42e9a4
add dword [edi + 4], eax
sub dword [edi + 8], eax
add dword [ebp - 0x60], eax
cmp dword [edi + 8], 0
jg 0x42e967
jmp 0x42ea57
je 0x42e9bc
cmp eax, 0xffffffff
jne 0x42e9b3
cmp ecx, 0x2733
jne 0x42e9bc
mov byte [ebp - 0x59], 0
jmp 0x42ea57
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 0x42ea43
cmp dword [esi + 0x14], 0
je 0x42ea43
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 0x42eac5
test ebx, ebx
jne 0x42ea65
xor eax, eax
jmp 0x42ea67
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.00431ca0
push ecx
push ecx
mov ecx, esp
and dword [ecx], 0
and dword [ecx + 4], 0
test ebx, ebx
je 0x42ea96
mov eax, dword [ebx]
test eax, eax
je 0x42ea96
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.0042f0f0
mov ecx, dword [eax]
cmp ebx, ecx
je 0x42eabd
test ecx, ecx
je 0x42eabd
mov ecx, dword [ecx]
test ecx, ecx
je 0x42eabd
mov ebx, dword [ecx]
mov edi, dword [eax + 8]
mov dword [ebp - 0x68], edi
jmp 0x42eac8
mov edi, dword [ebp - 0x68]
cmp byte [ebp - 0x59], 0
je 0x42eae6
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0x108]
call fcn.0041445f
cmp edi, dword [eax + 8]
jne 0x42e893
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5a], 0
je 0x42eb14
cmp dword [esi + 0xf4], 0
jne 0x42eb14
cmp dword [esi + 0x118], 0
jne 0x42eb14
push dword [ebp - 0x60]
push esi
call dword [esi + 0xc]
pop ecx
pop ecx
call fcn.0055d9d7
ret