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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x504530]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [edi + 0x228]
inc ecx
mov dword [ebp - 0x14], eax
mov dword [edi + 0x228], ecx
test byte [ebx + 3], 2
mov dword [ebp - 0x10], esp
je 0x4171e4
push 3
lea eax, [ebp - 0x1c]
push 0x4db93c
push eax
call fcn.004acc60
mov esi, dword [ebp + 0xc]
mov cx, word [ebx + 4]
mov dl, byte [ebx + 6]
add esp, 0xc
push 0x10
push esi
push 0
push 8
lea eax, [ebp - 0x1c]
mov word [ebp - 0x18], cx
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x16], dl
mov byte [ebp - 0x15], 0
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x4171e7
mov esi, dword [ebp + 0xc]
mov dl, byte [esi + 6]
mov cl, byte [esi + 5]
xor eax, eax
mov al, byte [esi + 7]
add al, dl
mov dl, byte [esi + 2]
add al, cl
mov cl, byte [ebx + 4]
add al, dl
mov dl, byte [esi + 4]
add al, cl
add al, dl
and eax, 0x1f
mov esi, dword [edi + eax*4 + 0x38]
lea eax, [edi + eax*4 + 0x38]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x4172d0
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x18]
cmp edx, dword [eax + 4]
jne 0x4172c7
mov cx, word [esi + 0x16]
cmp cx, word [eax + 2]
jne 0x4172c7
mov dx, word [esi + 0x28]
cmp dx, word [ebx + 4]
jne 0x4172c7
mov al, byte [esi + 0x2a]
cmp al, byte [ebx + 7]
jne 0x4172c7
mov ecx, dword [ebp + 0x10]
mov al, byte [ebx + 6]
push ecx
lea edx, [ebx + 8]
call fcn.00415b10
test eax, eax
je 0x4172a7
push esi
call fcn.00415b70
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
je 0x4172a7
mov edx, dword [ebp + 0xc]
push edx
push edi
mov dword [ebp - 4], 0
call fcn.00417590
jmp 0x417294
mov dword [ebp - 4], 0xffffffff
dec dword [esi + 0xc]
jne 0x4172a7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004ae38e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [esi + 4]
jmp 0x417213
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x417421
mov dl, byte [ebx + 7]
mov eax, dword [edi + 0x20]
movzx ecx, dl
cmp eax, ecx
jb 0x417421
mov cl, byte [ebx + 3]
xor eax, eax
mov ax, word [ebx + 4]
mov dword [ebp - 0x28], esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.00415a40
mov cl, byte [esi + 0x2a]
xor eax, eax
test cl, cl
mov dword [ebp - 0x20], eax
jbe 0x417339
lea ecx, [ecx]
mov edx, dword [esi + 0x30]
movzx ecx, ax
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x1c], edx
dec dword [edi + 0x20]
movzx cx, byte [esi + 0x2a]
inc eax
cmp ax, cx
mov dword [ebp - 0x20], eax
jb 0x417310
mov al, byte [ebx + 6]
cmp al, 1
jb 0x4173df
cmp al, byte [esi + 0x2a]
ja 0x4173df
mov cl, byte [esi + 0x2b]
test cl, cl
je 0x4173df
mov edx, dword [esi + 0x34]
movzx eax, al
shl eax, 2
mov ecx, dword [edx + eax - 4]
test ecx, ecx
mov dword [ebp - 0x20], eax
jne 0x4173df
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0x30]
push ecx
add ebx, 8
push ebx
mov ebx, dword [edx + eax - 4]
call fcn.0040e000
mov eax, dword [esi + 0x34]
mov ecx, dword [ebp - 0x20]
mov dword [eax + ecx - 4], 1
dec byte [esi + 0x2b]
jne 0x4173df
push esi
call fcn.00415b70
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x20], ebx
je 0x4173df
mov edx, dword [ebp + 0xc]
push edx
push edi
mov dword [ebp - 4], 2
call fcn.00417590
jmp 0x4173cc
mov dword [ebp - 4], 0xffffffff
dec dword [ebx + 0xc]
jne 0x4173df
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
mov dword [esi + 0xc], 0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4173f8
mov dword [eax + 0xc], esi
jmp 0x4173fb
mov dword [edi + 0x34], esi
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x30], esi
mov edx, dword [esi + 4]
lea eax, [esi + 4]
mov dword [edi + 0x2c], edx
mov edx, dword [ecx]
test edx, edx
je 0x417413
mov dword [edx + 8], eax
mov edx, dword [ecx]
mov dword [eax], edx
mov dword [esi + 8], ecx
mov dword [ecx], esi
jmp 0x4172a7
mov eax, dword [edi + 0x34]
test eax, eax
je 0x4172ac
push 0
mov edx, edi
call fcn.004174e0
jmp 0x4172d0