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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], edx
push edi
mov edi, ecx
mov dword [ebp - 8], eax
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x40e81e
mov eax, dword [edi + 0x2c]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40e3d0
push 1
push esi
push ebx
push edx
push 3
push edi
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jle 0x40e820
mov edx, dword [ebp - 4]
nop word [eax + eax]
test esi, esi
js 0x40e785
mov eax, dword [edi + 4]
test eax, eax
je 0x40e3f6
mov eax, dword [eax + 0x104]
test eax, eax
je 0x40e3f6
push ebx
push edx
push edi
call eax
add esp, 0xc
jmp 0x40e70c
mov cl, byte [edi + 0x50]
movzx eax, cl
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x40e408
jmp dword [eax*4 + 0x40e828]
mov dword [ebp - 8], 0
test edx, edx
je 0x40e4e2
test byte [edi + 0x4c], 1
lea eax, [ebp - 8]
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, esi
je 0x40e44d
push 2
push eax
push 0
call fcn.0044c0c0
add esp, 0xc
cmp eax, 0xffffff36
je 0x40e451
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x40e4e7
push 0
jmp 0x40e430
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x40e463
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
jmp 0x40e4e7
call fcn.004439a0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40e442
test byte [edi + 0x4c], 1
lea ecx, [ebp - 8]
mov edx, ebx
je 0x40e49c
push 2
push ecx
push eax
mov ecx, esi
call fcn.0044c0c0
add esp, 0xc
test eax, eax
jns 0x40e4be
mov ecx, dword [ebp - 0x10]
call fcn.004439c0
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x40e4e7
push 0
push ecx
push eax
mov ecx, esi
call fcn.0044c0c0
add esp, 0xc
test eax, eax
jns 0x40e4be
mov ecx, dword [ebp - 0x10]
call fcn.004439c0
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x40e4e7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40e4cc
mov ecx, eax
call fcn.004439c0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
jmp 0x40e4ea
mov ecx, 0xffffff53
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x1c]
test ecx, ecx
mov esi, ecx
cmovle eax, ebx
mov ebx, eax
mov eax, dword [ebp - 0x18]
cmovle eax, edx
mov dword [ebp - 4], eax
jmp case.default.0x40e408
test edx, edx
je 0x40e5d3
mov esi, 0xfffffffe
cmp cl, 5
je 0x40e51d
xor esi, esi
jmp case.default.0x40e408
cmp dword [edi + 0x10], 0
je 0x40e5b9
mov eax, dword [edi + 0x38]
test ebx, ebx
jne 0x40e53d
mov ecx, dword [edi + 0x18]
add ecx, eax
xor esi, esi
mov dword [ebp - 0x20], ecx
jmp case.default.0x40e408
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jge 0x40e550
mov esi, ecx
sub esi, eax
mov dword [ebp - 0x10], esi
mov esi, dword [edi + 0x30]
jmp 0x40e588
test ecx, ecx
jle 0x40e560
cmp eax, ecx
jne 0x40e560
or esi, 0xffffffff
jmp case.default.0x40e408
mov esi, dword [edi + 0x30]
mov dword [ebp - 0xc], esi
sub esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jg 0x40e58b
test ecx, ecx
jne 0x40e57b
or esi, 0xffffffff
jmp case.default.0x40e408
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
jg 0x40e586
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [ebp - 0xc], esi
cmp ebx, dword [ebp - 0x10]
mov esi, ebx
mov edx, dword [edi + 0x18]
cmovge esi, dword [ebp - 0x10]
add edx, eax
add eax, esi
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [edi + 0x38], eax
cmp eax, dword [ebp - 0xc]
jne 0x40e5b9
mov eax, esi
test ecx, ecx
jle 0x40e5b9
mov dword [edi + 0x38], 0
test esi, esi
jle case.default.0x40e408
push esi
push edx
push dword [ebp - 0x20]
call fcn.0046ae20
add esp, 0xc
jmp case.default.0x40e408
mov esi, 0xffffff53
jmp case.default.0x40e408
mov ecx, dword [edi]
test ecx, ecx
je 0x40e5f0
test edx, edx
je 0x40e5f0
test dword [edi + 0x4c], 0x200
je 0x40e5f7
xor esi, esi
jmp case.default.0x40e408
test ebx, ebx
jne 0x40e603
lea esi, [ebx + 1]
jmp case.default.0x40e408
mov edx, dword [edi + 0x30]
push ecx
add edx, ebx
call fcn.0040f740
add esp, 4
test eax, eax
jne 0x40e61c
xor esi, esi
jmp case.default.0x40e408
mov eax, dword [edi]
mov ecx, dword [eax]
test ecx, ecx
jne 0x40e62b
xor esi, esi
jmp case.default.0x40e408
mov eax, dword [edi + 0x30]
push ebx
push dword [ebp - 4]
add eax, ecx
push eax
call fcn.0046ae20
mov ecx, dword [edi]
add esp, 0xc
mov esi, ebx
mov eax, dword [ecx]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 8]
add dword [edi + 0x30], ebx
add dword [edi + 0x38], ebx
mov dword [edi + 0x44], eax
jmp case.default.0x40e408
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40e670
push eax
push ebx
push 1
push edx
call fcn.004713fc
add esp, 0x10
jmp 0x40e70c
mov esi, 0xffffff52
jmp case.default.0x40e408
cmp dword [edi + 0xc], 0
je case.default.0x40e408
xor esi, esi
test edx, edx
je 0x40e5d3
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40e6e6
cmp dword [ecx + 0x230], esi
jne 0x40e6cf
mov eax, 0x48b550
cmp dword [0x48b558], esi
je 0x40e6bf
mov ecx, dword [ecx + 0x228]
cmp ecx, dword [eax]
je 0x40e6e1
add eax, 0xc
cmp dword [eax + 8], esi
jne 0x40e6b0
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx + 0x228]
cmp eax, 0x357
jne 0x40e6e6
mov ecx, dword [edi + 0x18]
push ebx
call fcn.004076c0
add esp, 4
lea esi, [eax - 1]
neg esi
sbb esi, esi
jmp case.default.0x40e408
mov eax, dword [eax + 4]
jmp 0x40e6c5
mov ecx, dword [edi + 0x18]
push ebx
call fcn.00407990
add esp, 4
cmp eax, 1
mov eax, 0xffffffff
cmovne esi, eax
jmp case.default.0x40e408
push 0
push ebx
push edx
push dword [edi + 0x44]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov edi, dword [edi + 0xc]
test edi, edi
je 0x40e785
jmp 0x40e3c7
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x48], 0
je 0x40e728
or esi, 0xffffffff
jmp 0x40e785
mov esi, dword [edi + 0x18]
test esi, esi
jne 0x40e736
mov esi, 0xffffff53
jmp 0x40e785
and dword [edi + 0x4c], 0xffffffef
test edx, edx
je 0x40e7b8
test ebx, ebx
js 0x40e7b8
mov eax, dword [esi + 0x354]
test eax, eax
je 0x40e763
push 1
push 8
push esi
call eax
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x358], 8
push ebx
mov ecx, esi
call fcn.0041dca0
mov esi, eax
add esp, 4
test esi, esi
jns 0x40e779
or esi, 0xffffffff
jmp 0x40e7bd
jne 0x40e785
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x48], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x40e7a3
push esi
push 0
push ebx
push dword [ebp - 4]
push 0x83
push edx
call eax
add esp, 0x18
mov esi, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40e813
mov eax, dword [0x4a3918]
push ecx
test eax, eax
je 0x40e80b
call eax
jmp 0x40e810
mov esi, 0xffffff53
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40e77b
mov eax, dword [ecx + 0x1a8]
cmp eax, 0xfffffebd
je 0x40e802
cmp eax, 0xfffffeb9
je 0x40e802
cmp eax, 0xfffffea9
je 0x40e77b
mov edx, 0x1000
test word [ecx + 0x30e], dx
jne 0x40e77b
cmp eax, 0xfffffe73
je 0x40e77b
cmp eax, 2
je 0x40e802
cmp eax, 3
jne 0x40e77b
or dword [edi + 0x4c], 0x10
jmp 0x40e785
call fcn.00471b58
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
jle 0x40e81e
test esi, esi
jg 0x40e820
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret