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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0xa7f064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x68]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0x95], bl
test edi, edi
je 0x9b5b3a
cmp dword [edi], 0xbab1e
jne 0x9b5b3a
cmp byte [edi + 0x10b], bl
je 0x9b53ce
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ab911
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xcc], eax
test eax, eax
jns 0x9b53f1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ab911
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x9b546b
nop
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.009b3df0
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x9b5429
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x9b5429
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x9b543c
cmp dword [ebp + edx*4 - 0x18], 0xffffffff
jae 0x9b543c
inc ebx
jmp 0x9b5441
cmp esi, 0xffffffff
je 0x9b5449
inc edx
rol eax, 1
cmp edx, 5
jb 0x9b5416
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc8], ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x9b5400
mov edi, dword [ebp - 0xc0]
lea esi, [ebp - 0x68]
lea eax, [ebp - 0xa0]
push eax
push edi
call fcn.009b5250
mov eax, dword [ebp - 0xa0]
add esp, 8
test eax, eax
js 0x9b5496
mov ecx, dword [ebp - 0xcc]
cmp eax, ecx
cmovl ecx, eax
mov dword [ebp - 0xcc], 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 0x9b54e2
lea eax, [ecx*8]
push eax
call dword [0xa7f0f8]
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
test esi, esi
jne 0x9b54db
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ab911
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
mov ecx, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor eax, eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], ecx
test ebx, ebx
je 0x9b5649
mov ecx, dword [edi + 4]
mov dword [ebp - 0x9c], ecx
test ecx, ecx
je 0x9b5649
nop
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.009b3df0
add esp, 8
mov dword [ebp - 0xa4], eax
xor edi, edi
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x9b5567
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x9b5567
mov ecx, dword [ebp - 0xa8]
mov esi, eax
mov eax, dword [ebp - 0xac]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xac], eax
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xa4], eax
je 0x9b55e9
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x9b55e9
mov esi, eax
mov dword [ebp - 0xa0], 4
lea eax, [ebp - 0xa0]
or ebx, 0x32
push eax
lea eax, [ebp - 0xbc]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x9b55c7
cmp dword [ebp - 0xbc], 1
jne 0x9b55c7
push eax
push eax
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xac]
mov edx, 0x10
mov ecx, dword [ebp - 0xa8]
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xac], eax
jmp 0x9b55ee
cmp esi, 0xffffffff
je 0x9b561a
mov eax, dword [ebp - 0xc0]
push ebx
push dword [eax + 0x104]
push esi
call dword [ebp - 0xb0]
test eax, eax
jne 0x9b5781
mov eax, dword [ebp - 0xa4]
inc edi
cmp edi, 5
jb 0x9b5525
mov ecx, dword [ebp - 0x9c]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jne 0x9b5510
mov ebx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xc0]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xc4], 0
jbe 0x9b57b0
lea ecx, [edi + 0x104]
lea edi, [esi + 4]
mov dword [ebp - 0xa4], ecx
mov esi, dword [ebp - 0xd0]
lea edi, [edi + eax*8]
add esi, 4
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [ebp - 0x9c], ecx
or dword [ebp - 0x9c], 4
test dl, 2
mov eax, dword [ebp - 0x9c]
cmove eax, ecx
test dl, 4
je 0x9b5704
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 4
push ecx
lea ecx, [ebp - 0xbc]
or eax, 0x32
push ecx
push 0x1008
mov dword [ebp - 0x9c], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [ebp - 0xb4], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x9b56fe
cmp dword [ebp - 0xbc], 1
jne 0x9b56fe
push eax
push eax
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0xa4]
push dword [eax]
push dword [esi - 4]
call dword [ebp - 0xb0]
test eax, eax
jne 0x9b5781
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
test byte [esi], 1
je 0x9b5732
mov eax, 0x300
mov word [edi], ax
test byte [esi], 2
movzx ecx, ax
je 0x9b5745
or eax, 0x400
mov word [edi], ax
movzx ecx, ax
test byte [esi], 4
je 0x9b5750
or ecx, 0x10
mov word [edi], cx
mov ecx, dword [ebp - 0xc4]
add edi, 8
mov eax, dword [ebp - 0xac]
inc ecx
inc eax
mov dword [ebp - 0xc4], ecx
add esi, 8
mov dword [ebp - 0xac], eax
cmp ecx, dword [ebp + 0x10]
jb 0x9b5678
mov esi, dword [ebp - 0xa4]
jmp 0x9b57bc
cmp byte [ebp - 0x95], 0
je 0x9b579a
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [0xa7f0fc]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ab911
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x104]
mov dword [ebp - 0xa4], esi
test eax, eax
jne 0x9b58cb
cmp byte [ebp + 0x20], al
je 0x9b5a8e
xor edi, edi
mov dword [ebp - 0xbc], edi
push 0
push dword [ebp - 0xcc]
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov edx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor eax, eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xa0], edx
cmp dword [ebp + 0x10], eax
jbe 0x9b59b6
mov ecx, dword [ebp - 0xa8]
lea ecx, [ecx + ebx*8]
add ecx, 6
mov dword [ebp - 0xb4], ecx
nop word [eax + eax]
movsx ebx, word [ecx]
xor esi, esi
mov ecx, dword [ebp - 0xd0]
shl eax, 3
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x94], esi
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0x94]
push ecx
push esi
push eax
mov dword [ebp - 0xc4], eax
call edx
test eax, eax
jne 0x9b5917
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
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xd4], 0
movzx eax, cx
mov esi, eax
je 0x9b5911
test edi, edi
jne 0x9b5911
test ebx, ebx
je 0x9b5911
mov eax, dword [ebp - 0xa4]
inc dword [ebp - 0xb8]
push edi
push dword [eax]
push dword [ebp - 0xc4]
call dword [ebp - 0xb0]
movzx eax, si
jmp 0x9b597a
push 0
push 0
push eax
push dword [ebp - 0xa8]
call fcn.009d27a0
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xbc], edi
test edi, edi
jns 0x9b5900
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ab911
mov esp, ebp
pop ebp
ret
jle 0x9b57d5
mov dword [ebp - 0xb8], edi
jmp 0x9b57e8
mov ebx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa4]
push 0
push dword [eax]
push dword [ebp - 0xc4]
call dword [ebp - 0xb0]
test edi, edi
jne 0x9b5936
movzx eax, si
jmp 0x9b597a
mov eax, esi
or eax, 1
test ebx, 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test dword [ebp - 0x9c], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0xd0]
mov word [ecx + edx + 6], ax
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xb4]
inc eax
mov edx, dword [ebp - 0xa0]
add ecx, 8
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xb4], ecx
cmp eax, dword [ebp + 0x10]
jb 0x9b5820
cmp dword [ebp - 0xc8], 0
je 0x9b5a80
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x9b5a80
mov ebx, dword [ebp - 0xbc]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.009b3df0
add esp, 8
mov dword [ebp - 0xd8], eax
xor esi, esi
mov edi, 1
nop word [eax + eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x9b5a69
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push dword [ebp + esi*4 - 0x18]
call dword [ebp - 0xa0]
test eax, eax
jne 0x9b5a47
cmp dword [ebp - 0xd4], eax
je 0x9b5a47
test ebx, ebx
jne 0x9b5a47
cmp dword [ebp - 0x94], ebx
je 0x9b5a47
inc dword [ebp - 0xb8]
mov eax, dword [ebp - 0xa4]
push 0
push dword [eax]
push dword [ebp + esi*4 - 0x18]
call dword [ebp - 0xb0]
mov eax, dword [ebp - 0xd8]
inc esi
rol edi, 1
cmp esi, 5
jb 0x9b5a00
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x9b59e0
mov eax, dword [ebp - 0xa4]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x9b5aa6
push dword [ebp - 0xa8]
call dword [0xa7f0fc]
add esp, 4
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x9b5ab8
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x9b5b27
cmp dword [ebp - 0xac], 0
jne 0x9b5b27
cmp byte [ebp + 0x20], 0
jne 0x9b5b27
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa0], 0
cmp dword [eax], 0xbab1e
jne 0x9b5b27
cmp byte [eax + 0x10b], 0
jne 0x9b5b27
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.009b5250
add esp, 8
test eax, eax
jne 0x9b5b27
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x9b5b27
mov ecx, dword [ebp - 0xcc]
cmp eax, ecx
jg 0x9b5b1a
test eax, eax
jns 0x9b5b1c
mov eax, ecx
cdq
push edx
push eax
call fcn.009d2c80
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009ab911
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.009ab911
mov esp, ebp
pop ebp
ret