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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc4]
push ebx
push esi
mov esi, dword [esp + 0xc8]
lea ebx, [esp + 0x70]
push edi
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
mov byte [esp + 0xf], 0
test esi, esi
je 0x10066cc7
cmp dword [esi], 0xbab1e
jne 0x10066cc7
cmp byte [esi + 0xe2], 0
je 0x10066717
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.100ab558
add esp, 0xbc
ret
cmp dword [esp + 0xd8], edi
jge 0x1006673d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.100ab558
add esp, 0xbc
ret
push ebp
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x100667a8
lea eax, [esp + 0x64]
push eax
push ebp
call fcn.10065370
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test ebx, eax
je 0x10066773
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x10066773
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x10066788
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x10066788
inc edi
mov esi, ecx
cmp esi, 0xffffffff
je 0x10066795
inc edx
rol eax, 1
cmp edx, 5
jb 0x10066760
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], edi
test ebp, ebp
jne 0x10066745
mov esi, dword [esp + 0x18]
lea ebx, [esp + 0x78]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.10066580
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x100667d1
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xdc], ecx
mov eax, dword [esp + 0xd8]
add eax, edi
cmp byte [esp + 0xe8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x10066829
lea eax, [ecx*8]
push eax
call dword [0x10106048]
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x10066824
lea eax, [ebx + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.100ab558
add esp, 0xbc
ret
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x28], ebp
test edi, edi
je 0x10066913
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10066913
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.10065370
add esp, 8
mov dword [esp + 0x20], eax
xor edi, edi
nop word [eax + eax]
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x10066891
mov edx, dword [esp + 0x1c]
mov eax, 0x300
mov esi, dword [esp + edi*4 + 0x64]
mov ebx, 0x29
mov dword [edx + ebp*8], esi
mov word [edx + ebp*8 + 4], ax
inc ebp
mov dword [esp + 0x28], ebp
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x20], eax
je 0x100668cb
mov esi, dword [esp + edi*4 + 0x64]
or ebx, 0x32
push 0
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x1c]
mov ecx, 0x10
mov dword [eax + ebp*8], esi
mov word [eax + ebp*8 + 4], cx
inc ebp
mov dword [esp + 0x28], ebp
cmp esi, 0xffffffff
je 0x100668f8
mov eax, dword [esp + 0x18]
push ebx
push dword [eax + 0xdc]
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x100669fc
mov eax, dword [esp + 0x20]
inc edi
cmp edi, 5
jb 0x10066860
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10066846
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0xd8], 0
mov dword [esp + 0x14], 0
jbe 0x100669de
lea esi, [ebx + 4]
mov edx, 0x29
mov ebx, dword [esp + 0x2c]
lea esi, [esi + ebp*8]
add ebx, 4
nop dword [eax + eax]
movzx ecx, word [ebx]
xor eax, eax
test cl, 1
cmovne eax, edx
test cl, 2
je 0x10066953
or eax, 4
test cl, 4
je 0x10066972
push 0
push 0
push 0
push dword [ebx - 4]
or eax, 0x32
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0xdc]
push dword [ebx - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x100669fc
mov eax, dword [ebx - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [ebx], 1
je 0x100669a2
mov eax, 0x300
mov word [esi], ax
test byte [ebx], 2
je 0x100669af
mov eax, 0x400
or word [esi], ax
test byte [ebx], 4
je 0x100669b8
or word [esi], 0x10
mov edx, dword [esp + 0x14]
inc ebp
inc edx
mov dword [esp + 0x28], ebp
add esi, 8
mov dword [esp + 0x14], edx
add ebx, 8
cmp edx, dword [esp + 0xd8]
mov edx, 0x29
jb 0x10066940
test ebp, ebp
jne 0x10066a1a
cmp byte [esp + 0xe8], 0
je 0x10066c34
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x20], ebx
jmp 0x10066a36
cmp byte [esp + 0x13], 0
je 0x10066a10
push dword [esp + 0x1c]
call dword [0x1010604c]
add esp, 4
mov eax, 4
jmp 0x1006680b
mov esi, dword [esp + 0x1c]
push 0
push 0
push ebp
push esi
call fcn.100816f0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x20], ebx
test ebx, ebx
jg 0x10066a56
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0xe0]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x10066a5a
mov dword [esp + 0x24], ebx
cmp dword [esp + 0xd8], 0
jbe 0x10066b79
lea ebp, [edi*8 + 6]
add ebp, esi
xor edi, edi
movsx eax, word [ebp]
xor esi, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push esi
mov dword [esp + 0x40], esi
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10066aef
mov ecx, dword [esp + 0x38]
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 + 0x38]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
mov ebx, dword [esp + 0x20]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x34], 0
movzx eax, cx
mov esi, eax
je 0x10066aef
test ebx, ebx
jg 0x10066aef
cmp dword [esp + 0x38], 0
je 0x10066aef
inc dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x34]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebx, ebx
jle 0x10066b60
mov edx, dword [esp + 0x14]
mov eax, esi
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x14]
cmove ecx, eax
movzx edx, cx
mov ebx, esi
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x20]
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 eax, dword [esp + 0x2c]
mov word [eax + edi*8 + 6], cx
inc edi
add ebp, 8
cmp edi, dword [esp + 0xd8]
jb 0x10066a73
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x10066c22
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10066c22
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.10065370
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
nop dword [eax + eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x10066c0b
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10066bed
cmp dword [esp + 0x34], eax
je 0x10066bed
test ebx, ebx
jg 0x10066bed
cmp dword [esp + 0x38], eax
je 0x10066bed
inc dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x10066bb0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10066b94
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
jmp 0x10066c38
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
je 0x10066c4c
push dword [esp + 0x1c]
call dword [0x1010604c]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10066c5a
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xe4], 0
je 0x10066cc0
test ebp, ebp
jne 0x10066cc0
cmp byte [esp + 0xe8], 0
jne 0x10066cc0
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x14], ebp
jne 0x10066cc0
cmp byte [ebx + 0xe2], 0
jne 0x10066cc0
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10066580
add esp, 8
test eax, eax
jne 0x10066cc0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10066cc0
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
jg 0x10066cb3
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.10081b10
add esp, 8
xor eax, eax
jmp 0x1006680b
mov ecx, dword [esp + 0xc4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0xbc
ret