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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 0x95], bl
push edi
lea edi, [ebp - 0x68]
mov dword [ebp - 0xac], edi
test esi, esi
je 0x101b38d7
cmp dword [esi], 0xbab1e
jne 0x101b38d7
cmp byte [esi + 0xeb], bl
je 0x101b324e
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], ebx
jge 0x101b3269
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x101b32e7
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.101b1c70
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x101b32a3
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x101b32a3
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x101b32b8
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x101b32b8
inc ebx
mov esi, ecx
cmp esi, 0xffffffff
je 0x101b32c5
inc edx
rol eax, 1
cmp edx, 5
jb 0x101b3290
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb8], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x101b3276
mov esi, dword [ebp - 0xb0]
lea edi, [ebp - 0x68]
lea eax, [ebp - 0x9c]
push eax
push esi
call fcn.101b30c0
mov eax, dword [ebp - 0x9c]
add esp, 8
test eax, eax
js 0x101b330c
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x10]
add eax, ebx
cmp byte [ebp + 0x20], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x101b3358
lea eax, [ecx*8]
push eax
call dword [0x1042b7b0]
mov edi, eax
add esp, 4
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x101b3351
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
xor edx, edx
mov dword [ebp - 0xa4], edx
test ebx, ebx
je 0x101b347e
mov eax, dword [esi + 4]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x101b347e
nop dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.101b1c70
add esp, 8
mov dword [ebp - 0x9c], eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
mov edx, dword [ebp - 0xa4]
je 0x101b33d7
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x101b33d7
mov edi, eax
mov ecx, 0x300
mov eax, dword [ebp - 0xac]
mov ebx, 0x29
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [ebp - 0xa4], edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0x9c], eax
je 0x101b3424
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x101b3424
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0xa4]
mov ecx, 0x10
mov eax, dword [ebp - 0xac]
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [ebp - 0xa4], edx
cmp edi, 0xffffffff
je 0x101b345b
mov eax, dword [ebp - 0xb0]
push ebx
push dword [eax + 0xe4]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x101b3657
mov eax, dword [ebp - 0x9c]
inc esi
cmp esi, 5
jb 0x101b3395
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa8], eax
test eax, eax
jne 0x101b3380
mov ebx, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xac]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x9c], 0
jbe 0x101b3551
lea esi, [edi + 4]
mov edi, dword [ebp - 0xa0]
lea esi, [esi + edx*8]
add edi, 4
movzx ecx, word [edi]
xor eax, eax
test cl, 1
mov edx, 0x29
cmovne eax, edx
test cl, 2
je 0x101b34b9
or eax, 4
test cl, 4
je 0x101b34dc
push 0
push 0
push 0
push dword [edi - 4]
or eax, 0x32
mov dword [ebp - 0xa8], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xb0]
push dword [eax + 0xe4]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x101b3657
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x101b3512
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
je 0x101b351f
mov eax, 0x400
or word [esi], ax
test byte [edi], 4
je 0x101b3528
or word [esi], 0x10
mov eax, dword [ebp - 0x9c]
add esi, 8
mov edx, dword [ebp - 0xa4]
inc eax
inc edx
mov dword [ebp - 0x9c], eax
add edi, 8
mov dword [ebp - 0xa4], edx
cmp eax, dword [ebp + 0x10]
jb 0x101b34a1
test edx, edx
jne 0x101b3685
cmp byte [ebp + 0x20], dl
je 0x101b382b
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xb0]
push 0
push dword [ebp + 0x14]
add eax, 0xe4
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [ebp + 0x10], 0
jbe 0x101b375d
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xa0]
add edi, 6
lea eax, [eax + ebx*8]
add eax, 6
mov dword [ebp - 0xa0], eax
nop dword [eax + eax]
movsx ebx, word [eax]
lea ecx, [ebp - 0x94]
mov eax, dword [edi - 6]
xor esi, esi
push ecx
push esi
push eax
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x94], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x101b36d1
mov ecx, dword [ebp - 0x94]
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 [ebp - 0x94]
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 [ebp - 0xbc], 0
movzx eax, cx
mov esi, eax
je 0x101b36cb
cmp dword [ebp - 0x9c], 0
jne 0x101b36cb
cmp dword [ebp - 0x94], 0
mov ebx, dword [ebp - 0xa8]
je 0x101b36d1
inc dword [ebp - 0xb4]
jmp 0x101b36d1
cmp byte [ebp - 0x95], 0
je 0x101b366f
push dword [ebp - 0xac]
call dword [0x1042b7b4]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push 0
push 0
push edx
push dword [ebp - 0xac]
call fcn.101d2270
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x9c], esi
test esi, esi
jns 0x101b36ba
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
jle 0x101b3568
mov dword [ebp - 0xb4], esi
jmp 0x101b3583
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xb0]
push 0
push dword [eax + 0xe4]
push dword [ebp - 0xc0]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [ebp - 0x9c], 0
jne 0x101b36f9
mov word [edi], si
jmp 0x101b3741
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [ebp - 0xa8]
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 [edi], cx
mov eax, dword [ebp - 0xa0]
add edi, 8
add eax, 8
sub dword [ebp + 0x10], 1
mov dword [ebp - 0xa0], eax
jne 0x101b35b0
cmp dword [ebp - 0xb8], 0
je 0x101b3819
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x101b3819
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.101b1c70
add esp, 8
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x101b3802
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x101b37e2
cmp dword [ebp - 0xbc], eax
je 0x101b37e2
cmp dword [ebp - 0x9c], eax
jne 0x101b37e2
cmp dword [ebp - 0x94], eax
je 0x101b37e2
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
push 0
push dword [eax + 0xe4]
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x101b3797
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x101b3781
mov eax, dword [ebp - 0xb0]
push dword [eax + 0xe4]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x101b3843
push dword [ebp - 0xac]
call dword [0x1042b7b4]
add esp, 4
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x101b3855
mov eax, dword [ebp - 0xb4]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x101b38c4
cmp dword [ebp - 0xa4], 0
jne 0x101b38c4
cmp byte [ebp + 0x20], 0
jne 0x101b38c4
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xa0], 0
cmp dword [eax], 0xbab1e
jne 0x101b38c4
cmp byte [eax + 0xeb], 0
jne 0x101b38c4
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.101b30c0
add esp, 8
test eax, eax
jne 0x101b38c4
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x101b38c4
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x101b38b7
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.101d26a0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret