Function at 0x40b1e0
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, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push 0x66e9f4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call fcn.0040aab0
mov dword [ebp - 4], 0
push 0x66e9f0
lea ecx, [ebp - 0x10]
call fcn.0040aab0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x40b244
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b247
sub eax, edx
sar eax, 1
lea ebx, [eax + eax]
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], edi
jle 0x40b270
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b273
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
mov dword [ebp - 0x18], edi
lea edi, [edi + ebx + 6]
test edi, edi
jne 0x40b2ea
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 0x40b2b5
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 0x40b2d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0x14]
push ecx
call fcn.005fb5ce
add esp, 4
mov dword [0x70a9c8], eax
test eax, eax
jne 0x40b358
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 0x40b323
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 0x40b2d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00404180
test eax, eax
jne 0x40b3c0
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 0x40b387
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 0x40b2d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x2d10], 0
je 0x40b3d0
mov ecx, esi
call fcn.00407d60
mov esi, dword [0x70a9c8]
mov dword [ebp - 0x26], 0x20009209
mov word [ebp - 0x28], 0x124
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x22], edi
mov edx, dword [ebp - 0x24]
mov ax, word [ebp - 0x20]
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 0x40b41a
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
mov esi, dword [0x70a9c8]
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 0x40b44d
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov eax, dword [ebp - 0x10]
mov esi, dword [0x70a9c8]
mov edx, dword [ebp - 0x18]
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 - 0x1c]
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 0x40b4ae
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
mov eax, 0xe0000001
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
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
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret