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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov eax, 0x67df88
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
cmp dword [eax], 1
jne 0x404f0c
mov dword [ebp - 0xc], 0
cmp ebx, 0x28
ja 0x404ed5
mov esi, dword [eax + 4]
mov dword [ebp - 0x10], esi
cmp edi, 0x1770
jbe 0x404c8d
push 0x272
push str.IOCP.cpp
push edi
push str._IOCP__::_Error_Max_msg__d___s__d
push 0x688660
call fcn.0040a296
mov eax, dword [0x6885e0]
mov ecx, dword [eax]
push 0x688660
push 0x6885e0
call ecx
mov eax, ebx
add esp, 0x1c
mov ebx, 0x6885e0
call fcn.00405550
jmp 0x404f0c
mov eax, dword [esi + 0x5e14]
add esi, 0x2f18
xor ebx, ebx
cmp dword [esi + 0x2f0c], ebx
jle 0x404d1b
lea edx, [eax + edi]
push edi
cmp edx, 0x176f
jbe 0x404cfc
mov ebx, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x2f00]
push eax
push ebx
push str._IOCP__::__Index___d__MAX_BUFFER_OVER__d__d__d
push 0x688660
call fcn.0040a296
mov ecx, dword [0x6885e0]
mov edx, dword [ecx]
push 0x688660
push 0x6885e0
call edx
add esp, 0x20
mov eax, ebx
mov ebx, 0x6885e0
mov dword [esi + 0x2f0c], 0
call fcn.00405550
jmp 0x404f0c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [eax + esi + 0x178c]
push edx
call fcn.0040b630
add esp, 0xc
add dword [esi + 0x2efc], edi
jmp 0x404f0c
mov dword [esi + 0x2f00], ebx
cmp eax, ebx
jle 0x404d4b
push eax
lea eax, [esi + 0x178c]
push eax
lea ecx, [esi + 0x1c]
push ecx
call fcn.0040b630
mov edx, dword [esi + 0x2efc]
add esp, 0xc
mov dword [esi + 0x2f00], edx
mov dword [esi + 0x2efc], ebx
mov eax, dword [esi + 0x2f00]
lea ecx, [eax + edi]
push edi
cmp ecx, 0x176f
jbe 0x404d8d
mov ebx, dword [ebp - 4]
push eax
push ebx
push str._IOCP__::__Index___d__MAX_BUFFER_OVER__d__d__d
push 0x688660
call fcn.0040a296
mov edx, dword [0x6885e0]
mov eax, dword [edx]
push 0x688660
push 0x6885e0
call eax
add esp, 0x1c
jmp 0x404ce1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [eax + esi + 0x1c]
push edx
call fcn.0040b630
add dword [esi + 0x2f00], edi
mov ecx, dword [esi + 0x2f00]
add esp, 0xc
push ebx
lea eax, [esi + 0x1c]
push esi
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
push ebx
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
push ecx
mov dword [esi + 0x2f04], ebx
mov ebx, dword [ebp - 8]
push 1
mov dword [esi + 0x2f08], 1
mov edx, dword [ebx - 0x4c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x404ec0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x404ec9
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2f0c], 0
movsx eax, byte [eax]
cmp eax, 0xc1
jne 0x404e65
mov esi, dword [esi + 0x18]
add ebx, 0xffffffb8
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
push 0x2b9
push str._IOCP__::___d_WSASend__d__failed_with_error___x___x___d__s
push 0x688660
call fcn.0040a296
mov ecx, dword [0x6885e0]
mov edx, dword [ecx]
push 0x688660
push 0x6885e0
call edx
mov eax, dword [ebp - 4]
add esp, 0x28
mov ebx, 0x6885e0
call fcn.00405550
jmp 0x404f0c
cmp eax, 0xc2
jne 0x404eb1
mov esi, dword [esi + 0x18]
add ebx, 0xffffffb8
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, byte [esi]
mov edx, dword [ebp - 4]
push eax
movzx eax, byte [esi + 3]
push eax
push ecx
push edx
push 0x2bf
push str._IOCP__::___d_WSASend__d__failed_with_error___x___x___d__s
push 0x688660
call fcn.0040a296
mov eax, dword [0x6885e0]
mov ecx, dword [eax]
push 0x688660
push 0x6885e0
call ecx
add esp, 0x28
mov eax, dword [ebp - 4]
mov ebx, 0x6885e0
call fcn.00405550
jmp 0x404f0c
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x5e28]
mov dword [esi + 0x2f0c], 1
jmp 0x404f0c
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 2]
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push edi
push str._IOCP__::__DataSend__Index__d___x__x__x
push 0x688660
call fcn.0040a296
mov eax, dword [0x6885e0]
mov ecx, dword [eax]
push 0x688660
push 0x6885e0
call ecx
add esp, 0x20
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
add eax, 0x58
inc ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
cmp eax, 0x67ed48
jl 0x404c25
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4