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

Disassembly:
push 0xffffffffffffffff
push 0x4ce178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, 0xffffffff
je 0x416af5
lea eax, [ebp + 4]
push esi
push eax
mov ebx, 0x533f44
mov dword [esp + 0x3c], eax
call fcn.00472370
test eax, eax
jne 0x416af5
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 4]
cmp eax, 3
jne 0x416968
mov dword [esp + 0x10], 0x4db048
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
call fcn.00466100
cmp dword [esp + 0x3c], esi
je 0x41690a
dec dword [ebx + 0xc]
jne 0x41690a
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x30]
xor eax, eax
mov ax, word [ebp + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x123d
je 0x416935
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 0x10
push ebp
push esi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [esp + 0x18]
cmp eax, esi
mov dword [esp + 0x10], 0x4db048
je 0x41694e
push eax
call fcn.004acb33
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
cmp eax, 2
je 0x416989
cmp dword [esp + 0x3c], esi
je 0x416b0d
dec dword [ebx + 0xc]
jne 0x416b0d
mov edx, dword [ebx]
mov ecx, ebx
jmp 0x416b0a
cmp dword [edi + 0xc0], esi
je 0x416996
cmp dword [edi + 0x1c], esi
jne 0x4169c0
mov eax, dword [edi + 0xc8]
cmp eax, esi
jne 0x4169b9
cmp dword [esp + 0x3c], esi
je 0x4169b2
dec dword [ebx + 0xc]
jne 0x4169b2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
push str.CDatagrams_output_frames_exhausted.
jmp 0x4169de
mov ecx, edi
call fcn.00416ef0
mov edx, dword [edi + 0x1c]
cmp edx, esi
jne 0x4169f5
cmp dword [esp + 0x3c], esi
je 0x4169d9
dec dword [ebx + 0xc]
jne 0x4169d9
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x30]
push str.CDatagrams_output_frames_really_exhausted.
push 0x534540
mov eax, 3
call fcn.00478d50
add esp, 8
jmp 0x416b0d
mov esi, dword [edi + 0xc0]
mov eax, dword [esi + 4]
mov dword [edi + 0xc0], eax
cmp dword [edi + 0x228], 1
jae 0x416a15
mov dword [esp + 0x44], 0
xor eax, eax
mov ax, word [edi + 8]
lea ecx, [eax + 1]
mov word [edi + 8], cx
mov ecx, dword [esp + 0x44]
push ecx
push eax
push ebp
push esi
mov ecx, ebx
call fcn.00415ce0
mov edx, dword [edi + 0x1c]
mov eax, dword [edx + 4]
mov edx, dword [edi + 0x20]
mov ecx, dword [esp + 0x40]
dec edx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], edx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0xc], 0
mov edx, dword [edi + 0xc4]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x416a67
mov dword [eax + 0xc], esi
jmp 0x416a6d
mov dword [edi + 0xc8], esi
xor eax, eax
mov dword [edi + 0xc4], esi
mov al, byte [esi + 0x24]
mov dl, byte [ebp + 7]
mov cl, byte [ebp + 6]
add al, dl
mov dl, byte [ebp + 5]
add al, cl
mov cl, byte [ebp + 2]
add al, dl
add al, cl
mov ecx, dword [esp + 0x34]
add al, byte [ecx]
and eax, 0x1f
mov ecx, dword [edi + eax*4 + 0xcc]
test ecx, ecx
lea eax, [edi + eax*4 + 0xcc]
je 0x416aad
lea edx, [esi + 4]
mov dword [ecx + 8], edx
mov edx, dword [eax]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [eax], esi
inc dword [edi + 0x310]
call fcn.00466100
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x416ad6
dec dword [ebx + 0xc]
jne 0x416ad6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
call fcn.00416cd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
cmp dword [esp + 0x3c], esi
je 0x416b0d
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x416b0d
dec dword [ecx + 0xc]
jne 0x416b0d
mov edx, dword [ecx]
call dword [edx + 0x30]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14