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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
mov eax, dword [ebp - 0x114]
cmp dword [eax], 0
ja 0x4276a1
mov ecx, dword [ebp - 0x114]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x114]
mov dword [edx + 0x18], 0
xor eax, eax
jmp 0x4278d9
mov eax, dword [ebp - 0x114]
cmp dword [eax + 0x18], 0
jle 0x4276b8
mov ecx, dword [ebp - 0x114]
call fcn.00427600
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + 0xc], 0x20000
jg 0x4276de
mov edx, dword [ebp - 0x114]
cmp dword [edx + 0xc], 0
jl 0x4276de
mov eax, dword [ebp - 0x114]
cmp dword [eax], 0
jae 0x427746
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 0xc]
push eax
push str.err_send1__d__d__d
lea ecx, [ebp - 0x100]
push ecx
call fcn.00599938
add esp, 0x14
push 0
push 0x5bc074
lea edx, [ebp - 0x100]
push edx
call fcn.00425f20
add esp, 0xc
mov eax, dword [ebp - 0x114]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x114]
mov dword [ecx + 0x18], 0
xor eax, eax
jmp 0x4278d9
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x114]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0xc]
jg 0x427775
mov edx, dword [ebp - 0x114]
cmp dword [edx + 0x18], 0x20000
jge 0x427775
mov eax, dword [ebp - 0x114]
cmp dword [eax + 0x18], 0
jge 0x4277d6
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 0xc]
push eax
push str.err_send2__d__d__d
lea ecx, [ebp - 0x100]
push ecx
call fcn.00599938
add esp, 0x14
push 0
push 0x5bc090
lea edx, [ebp - 0x100]
push edx
call fcn.00425f20
add esp, 0xc
mov eax, dword [ebp - 0x114]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x114]
mov dword [ecx + 0x18], 0
mov dword [ebp - 0x104], 0
jmp 0x4277f1
mov edx, dword [ebp - 0x104]
add edx, 1
mov dword [ebp - 0x104], edx
cmp dword [ebp - 0x104], 1
jge 0x4278c1
mov dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x114]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 0x10c], edx
push 0
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x114]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
je 0x427873
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov dword [edx + 0x18], ecx
jmp 0x42787e
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x114]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0xc]
jl 0x42789b
cmp dword [ebp - 0x110], 0xffffffff
jne 0x4278a0
jmp 0x4277e2
mov eax, dword [ebp - 0x114]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x114]
mov dword [ecx + 0x18], 0
mov eax, 1
jmp 0x4278d9
mov edx, dword [ebp - 0x114]
cmp dword [edx + 0xc], 0x20000
jl 0x4278d4
xor eax, eax
jmp 0x4278d9
mov eax, 1
mov esp, ebp
pop ebp
ret