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

Disassembly:
push 0xac
mov eax, 0x589075
call fcn.0054eeb6
mov esi, ecx
cmp byte [esi + 0x61], 0
jne 0x420c02
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xf4]
xor ebx, ebx
mov byte [ebp - 0x59], 1
mov byte [ebp - 0x5a], bl
test eax, eax
jg 0x4208d2
cmp dword [esi + 0x118], ebx
je 0x4208d6
mov byte [ebp - 0x5a], 1
mov edi, ebx
mov dword [ebp - 0x60], edi
test eax, eax
jle 0x42093b
push ebx
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 0x420998
sub dword [esi + 0xf4], edi
mov eax, dword [esi + 0xf4]
add dword [ebp - 0x60], edi
test eax, eax
jle 0x42092e
mov ecx, dword [esi + 0x100]
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0054b2f0
add esp, 0xc
xor ebx, ebx
cmp dword [esi + 0xf4], ebx
jg 0x4208df
mov edi, dword [ebp - 0x60]
cmp dword [esi + 0x118], ebx
je 0x420bd8
mov dword [ebp - 0x6c], ebx
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
lea ebx, [esi + 0x108]
push eax
mov ecx, ebx
call fcn.004108a5
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041c2e3
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.00421173
mov edx, dword [ebp - 0x64]
cmp edx, dword [eax + 8]
setne al
test al, al
je 0x420bd6
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
jne 0x420a4c
xor eax, eax
jmp 0x420a4e
je 0x4209af
cmp edi, 0xffffffff
jne 0x420bd3
cmp ebx, 0x2733
je 0x420bd3
lea ecx, [ebp - 0x34]
call fcn.00404d84
and dword [ebp - 4], 0
lea ecx, [ebp - 0x88]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.0040495e
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00404acd
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00407035
xor ebx, ebx
lea ecx, [ebp - 0xa0]
push ebx
push 1
call fcn.0040400f
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call fcn.0040400f
cmp byte [esi + 0x61], bl
jne 0x420a35
cmp dword [esi + 0x14], ebx
je 0x420a35
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004052af
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040400f
mov edi, dword [ebp - 0x60]
jmp 0x420bd8
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov edi, dword [eax + ecx*4]
cmp dword [edi + 8], 0
jle 0x420b53
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 ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x70], eax
test ebx, ebx
jle 0x420a9b
add dword [edi + 4], ebx
sub dword [edi + 8], ebx
add dword [ebp - 0x60], ebx
cmp dword [edi + 8], 0
jg 0x420a64
jmp 0x420b49
je 0x420ab2
cmp ebx, 0xffffffff
jne 0x420aa9
cmp eax, 0x2733
jne 0x420ab2
mov byte [ebp - 0x59], 0
jmp 0x420b49
lea ecx, [ebp - 0x58]
call fcn.00404d84
mov edx, dword [ebp - 0x70]
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.0040495e
push eax
mov edx, str.send_error:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb8]
call fcn.00404acd
pop ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407035
xor ebx, ebx
lea ecx, [ebp - 0xb8]
push ebx
push 1
call fcn.0040400f
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040400f
cmp byte [esi + 0x61], bl
jne 0x420b37
cmp dword [esi + 0x14], ebx
je 0x420b37
sub esp, 0x24
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.004052af
push esi
call dword [esi + 0x14]
add esp, 0x28
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
push ebx
push 1
mov byte [ebp - 0x59], bl
call fcn.0040400f
mov ebx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x64]
cmp dword [edi + 8], 0
jne 0x420bb0
test ebx, ebx
jne 0x420b5d
xor eax, eax
jmp 0x420b5f
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
push dword [eax]
call fcn.00423289
push ecx
push ecx
mov ecx, esp
and dword [ecx], 0
and dword [ecx + 4], 0
test ebx, ebx
je 0x420b8b
mov eax, dword [ebx]
test eax, eax
je 0x420b8b
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64]
lea ebx, [esi + 0x108]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x94]
push eax
mov ecx, ebx
call fcn.004211f1
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041c2e3
jmp 0x420bb6
lea ebx, [esi + 0x108]
cmp byte [ebp - 0x59], 0
je 0x420bd3
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.00421173
mov edx, dword [ebp - 0x64]
cmp edx, dword [eax + 8]
jne 0x420986
mov edi, dword [ebp - 0x60]
xor ebx, ebx
lea eax, [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x5a], 0
je 0x420c02
cmp dword [esi + 0xf4], ebx
jne 0x420c02
cmp dword [esi + 0x118], ebx
jne 0x420c02
push edi
push esi
call dword [esi + 0xc]
pop ecx
pop ecx
call fcn.0054ee65
ret