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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6418f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x18], esi
call fcn.00408780
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bea0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040bea0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x40d67b
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d680
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], edi
jle 0x40d6a9
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d6b0
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
mov dword [ebp + 8], edi
lea edi, [edi + ebx + 6]
test edi, edi
jne 0x40d726
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d6f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40d711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [edi + 0x14]
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [0x70a9cc], eax
test eax, eax
jne 0x40d793
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d75f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40d711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.00404180
test eax, eax
jne 0x40d7fa
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d7c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40d711
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x2d10], 0
je 0x40d80a
mov ecx, esi
call fcn.00407d60
mov esi, dword [0x70a9cc]
mov dword [ebp - 0x22], 0xaa129109
mov word [ebp - 0x24], 0x124
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1e], edi
mov edx, dword [ebp - 0x20]
mov ax, word [ebp - 0x1c]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov word [esi + 8], ax
mov dword [esi + 0xa], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x40d854
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
mov esi, dword [0x70a9cc]
push ebx
push eax
lea edx, [esi + 0xe]
push edx
call fcn.00610e50
xor eax, eax
mov word [esi + ebx + 0xe], ax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x40d887
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov eax, dword [ebp - 0x10]
mov esi, dword [0x70a9cc]
mov edx, dword [ebp + 8]
push edx
push eax
lea eax, [esi + ebx + 0x10]
push eax
call fcn.00610e50
add esp, 0xc
push 0
add edi, 0xa
push edi
push esi
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0x48]
push ecx
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
mov ecx, esi
cmp eax, edi
jne 0x40d8e7
call fcn.00403690
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call fcn.004014a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
call fcn.00403690
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8