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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x10295418]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xe8]
push edi
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x84]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov byte [esp + 0xb], 0
test ebx, ebx
je 0x102178c6
cmp dword [ebx], 0xbab1e
jne 0x102178c6
cmp byte [ebx + 0x107], 0
je 0x10217308
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.10250f5f
add esp, 0xd0
ret
push ebp
mov ebp, dword [esp + 0xec]
test ebp, ebp
jns 0x10217331
pop ebp
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.10250f5f
add esp, 0xd0
ret
push esi
mov esi, dword [ebx + 4]
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x50], xmm0
test esi, esi
je 0x10217363
lea eax, [esp + 0x40]
push eax
push esi
call fcn.10215f40
add edi, dword [esp + 0x5c]
add esp, 8
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x10217346
mov dword [esp + 0x30], edi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10217180
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x10217385
cmp eax, ebp
cmovl ebp, eax
mov dword [esp + 0xf0], ebp
mov esi, dword [esp + 0xec]
cmp byte [esp + 0xfc], 0
lea eax, [edi + esi]
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x102173de
lea eax, [ecx*8]
push eax
call dword [section..data]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x102173d9
mov eax, 3
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.10250f5f
add esp, 0xd0
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x24], ebp
test edi, edi
je 0x102174e5
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x102174e5
nop dword [eax + eax]
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.10215f40
xor edi, edi
add esp, 8
cmp dword [esp + 0x54], edi
jbe 0x102174cb
mov eax, dword [esp + 0x1c]
lea eax, [eax + ebp*8]
mov esi, eax
inc ebp
add eax, 8
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov eax, dword [esp + edi*4 + 0x40]
mov dword [esi], eax
xor eax, eax
mov word [esi + 4], ax
test byte [esp + edi + 0x58], 1
je 0x10217450
lea ebx, [eax + 0x29]
mov eax, 0x300
mov word [esi + 4], ax
test byte [esp + edi + 0x58], 2
je 0x1021749f
mov ebp, dword [esp + edi*4 + 0x40]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10217496
cmp dword [esp + 0x38], 1
jne 0x10217496
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
or word [esi + 4], 0x10
mov ebp, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0xf8]
push dword [esp + edi*4 + 0x48]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x102176c1
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, dword [esp + 0x54]
jb 0x10217421
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10217400
mov esi, dword [esp + 0xec]
mov eax, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x14], ebp
test esi, esi
je 0x102175de
mov esi, dword [esp + 0x1c]
mov ecx, 0x29
mov edi, dword [esp + 0x18]
add esi, 4
add edi, 4
lea esi, [esi + eax*8]
nop dword [eax]
movzx eax, word [edi]
xor ebx, ebx
test al, 1
cmovne ebx, ecx
test al, 2
je 0x10217521
or ebx, 4
test al, 4
je 0x10217567
mov ebp, dword [edi - 4]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10217563
cmp dword [esp + 0x38], 1
jne 0x10217563
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0xf8]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x102176c1
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x1021759b
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
je 0x102175a8
mov eax, 0x400
or word [esi], ax
test byte [edi], 4
je 0x102175b1
or word [esi], 0x10
mov eax, dword [esp + 0x24]
inc ebp
inc eax
mov dword [esp + 0x14], ebp
add esi, 8
mov dword [esp + 0x24], eax
add edi, 8
mov ecx, 0x29
cmp ebp, dword [esp + 0xec]
jb 0x10217510
mov esi, dword [esp + 0xec]
test eax, eax
jne 0x102176df
cmp byte [esp + 0xfc], al
je 0x10217835
xor edi, edi
push 0
push dword [esp + 0xf4]
lea eax, [ebx + 0xf8]
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test esi, esi
je 0x102177a0
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
add ebp, 6
lea eax, [eax*8 + 6]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
nop word [eax + eax]
movsx ebx, word [eax]
lea ecx, [esp + 0x60]
mov eax, dword [ebp - 6]
xor esi, esi
push ecx
push esi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10217713
mov ecx, dword [esp + 0x60]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x60]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x34], 0
movzx eax, cx
mov esi, eax
je 0x1021770f
test edi, edi
jne 0x1021770f
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x60], edi
je 0x10217713
inc dword [esp + 0x28]
jmp 0x10217713
cmp byte [esp + 0x13], 0
je 0x102176d5
push dword [esp + 0x1c]
call dword [0x10295004]
add esp, 4
mov eax, 4
jmp 0x102173c0
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.10236120
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x10217700
mov eax, 0xc
jmp 0x102173c0
jle 0x102175f5
mov dword [esp + 0x28], edi
jmp 0x1021760f
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0xf8]
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test edi, edi
jne 0x10217733
mov word [ebp], si
jmp 0x1021777a
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x14]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov word [ebp], cx
mov eax, dword [esp + 0x18]
add ebp, 8
add eax, 8
sub dword [esp + 0xec], 1
mov dword [esp + 0x18], eax
jne 0x10217640
mov ebp, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x30], 0
je 0x10217829
mov ebx, dword [ebx + 4]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10217825
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.10215f40
xor esi, esi
add esp, 8
cmp dword [esp + 0x54], esi
jbe 0x1021781a
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
push 0
push dword [esp + esi*4 + 0x48]
call ebp
test eax, eax
jne 0x102177fd
cmp dword [esp + 0x34], eax
je 0x102177fd
test edi, edi
jne 0x102177fd
cmp dword [esp + 0x60], edi
je 0x102177fd
inc dword [esp + 0x28]
push 0
push dword [ebx + 0xf8]
push dword [esp + esi*4 + 0x48]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
cmp esi, dword [esp + 0x54]
jb 0x102177d0
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x102177b6
mov ebx, dword [esp + 0x20]
push dword [ebx + 0xf8]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x10217849
push dword [esp + 0x1c]
call dword [0x10295004]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10217857
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xf8], 0
je 0x102178bf
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x102178bf
cmp byte [esp + 0xfc], al
jne 0x102178bf
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x18], eax
jne 0x102178bf
cmp byte [ebx + 0x107], al
jne 0x102178bf
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10217180
add esp, 8
test eax, eax
jne 0x102178bf
mov eax, dword [esp + 0x18]
test eax, eax
je 0x102178bf
mov ecx, dword [esp + 0xf0]
cmp eax, ecx
jg 0x102178b2
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.10236600
add esp, 8
xor eax, eax
jmp 0x102173c0
mov ecx, dword [esp + 0xd4]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.10250f5f
add esp, 0xd0
ret