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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0xc], 4
push 0xfa
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
call fcn.004061b0
cmp dword [ebp + 8], 0
jge 0x40685d
mov dword [ebp - 0x24], 0
jmp 0x406871
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
sub ecx, 1
xor edx, edx
cmp dword [ebp + 8], ecx
setle dl
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x4068c5
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 1]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.error_L2_:_Index__d___x__x__x
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx]
call ecx
add esp, 0x18
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
jmp 0x406c6e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
shl ecx, 5
mov edx, dword [ebp - 0x20]
movzx eax, byte [edx + ecx + 0x1c]
test eax, eax
jne 0x4068fb
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
jmp 0x406c6e
mov eax, dword [ebp + 8]
shl eax, 5
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax + 0x24]
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x10], 0x8000
jbe 0x406961
push 0x239
push str.SourceNetworkcIOCP.cpp
mov eax, dword [ebp + 0x10]
push eax
push str.Error_:_Max_msg__d___s__d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx]
call ecx
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00407100
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x7d08]
mov eax, dword [edx + 0xc]
call eax
xor eax, eax
jmp 0x406c6e
mov ecx, dword [ebp - 0x10]
add ecx, 0x10038
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1002c], 0
jle 0x406a71
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1001c]
add ecx, dword [ebp + 0x10]
cmp ecx, 0x7fff
jbe 0x406a17
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 1]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1001c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10020]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.__d_error_L2_MAX_BUFFER_OVER__d__d__d:__x__x__x
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax]
call edx
add esp, 0x24
mov eax, dword [ebp - 4]
mov dword [eax + 0x1002c], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00407100
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
mov eax, 1
jmp 0x406c6e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1001c]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x801c]
push edx
call fcn.004360a0
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1001c]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1001c], ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x7d08]
mov eax, dword [edx + 0xc]
call eax
mov eax, 1
jmp 0x406c6e
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10020], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1001c], 0
jle 0x406acc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1001c]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x801c
push edx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
call fcn.004360a0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1001c]
mov dword [ecx + 0x10020], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1001c], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10020]
add eax, dword [ebp + 0x10]
cmp eax, 0x7fff
jbe 0x406b54
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 2]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 1]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10020]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.__d_error_L2_MAX_BUFFER_OVER__d__d:__x__x__x
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [eax]
call edx
add esp, 0x20
mov eax, dword [ebp - 4]
mov dword [eax + 0x1002c], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00407100
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
jmp 0x406c6e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10020]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x1c]
push edx
call fcn.004360a0
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10020]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10020], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10020]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10024], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10028], 1
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov ecx, dword [ebp + 8]
shl ecx, 5
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + ecx + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x406c30
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x406c2e
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1002c], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00407100
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x7d08]
mov eax, dword [edx + 0xc]
call eax
xor eax, eax
jmp 0x406c6e
jmp 0x406c45
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20068]
add edx, 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20068], edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1002c], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x7d08
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc