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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0xa93064]
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 0x9ca6da
cmp dword [edi], 0xbab1e
jne 0x9ca6da
cmp byte [edi + 0x10b], bl
je 0x9c9f6e
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c04ba
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xcc], eax
test eax, eax
jns 0x9c9f91
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c04ba
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x9ca00b
nop
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.009c8990
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x9c9fc9
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x9c9fc9
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x9c9fdc
cmp dword [ebp + edx*4 - 0x18], 0xffffffff
jae 0x9c9fdc
inc ebx
jmp 0x9c9fe1
cmp esi, 0xffffffff
je 0x9c9fe9
inc edx
rol eax, 1
cmp edx, 5
jb 0x9c9fb6
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc8], ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x9c9fa0
mov edi, dword [ebp - 0xc0]
lea esi, [ebp - 0x68]
lea eax, [ebp - 0xa0]
push eax
push edi
call fcn.009c9df0
mov eax, dword [ebp - 0xa0]
add esp, 8
test eax, eax
js 0x9ca036
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 0x9ca082
lea eax, [ecx*8]
push eax
call dword [0xa930f8]
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
test esi, esi
jne 0x9ca07b
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c04ba
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 0x9ca1e9
mov ecx, dword [edi + 4]
mov dword [ebp - 0x9c], ecx
test ecx, ecx
je 0x9ca1e9
nop
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.009c8990
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 0x9ca107
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x9ca107
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 0x9ca189
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x9ca189
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 0x9ca167
cmp dword [ebp - 0xbc], 1
jne 0x9ca167
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 0x9ca18e
cmp esi, 0xffffffff
je 0x9ca1ba
mov eax, dword [ebp - 0xc0]
push ebx
push dword [eax + 0x104]
push esi
call dword [ebp - 0xb0]
test eax, eax
jne 0x9ca321
mov eax, dword [ebp - 0xa4]
inc edi
cmp edi, 5
jb 0x9ca0c5
mov ecx, dword [ebp - 0x9c]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jne 0x9ca0b0
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 0x9ca350
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 0x9ca2a4
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 0x9ca29e
cmp dword [ebp - 0xbc], 1
jne 0x9ca29e
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 0x9ca321
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
test byte [esi], 1
je 0x9ca2d2
mov eax, 0x300
mov word [edi], ax
test byte [esi], 2
movzx ecx, ax
je 0x9ca2e5
or eax, 0x400
mov word [edi], ax
movzx ecx, ax
test byte [esi], 4
je 0x9ca2f0
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 0x9ca218
mov esi, dword [ebp - 0xa4]
jmp 0x9ca35c
cmp byte [ebp - 0x95], 0
je 0x9ca33a
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [0xa930fc]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c04ba
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x104]
mov dword [ebp - 0xa4], esi
test eax, eax
jne 0x9ca46b
cmp byte [ebp + 0x20], al
je 0x9ca62e
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 0x9ca556
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 0x9ca4b7
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 0x9ca4b1
test edi, edi
jne 0x9ca4b1
test ebx, ebx
je 0x9ca4b1
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 0x9ca51a
push 0
push 0
push eax
push dword [ebp - 0xa8]
call fcn.009e7380
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xbc], edi
test edi, edi
jns 0x9ca4a0
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c04ba
mov esp, ebp
pop ebp
ret
jle 0x9ca375
mov dword [ebp - 0xb8], edi
jmp 0x9ca388
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 0x9ca4d6
movzx eax, si
jmp 0x9ca51a
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 0x9ca3c0
cmp dword [ebp - 0xc8], 0
je 0x9ca620
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x9ca620
mov ebx, dword [ebp - 0xbc]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.009c8990
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 0x9ca609
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 0x9ca5e7
cmp dword [ebp - 0xd4], eax
je 0x9ca5e7
test ebx, ebx
jne 0x9ca5e7
cmp dword [ebp - 0x94], ebx
je 0x9ca5e7
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 0x9ca5a0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x9ca580
mov eax, dword [ebp - 0xa4]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x9ca646
push dword [ebp - 0xa8]
call dword [0xa930fc]
add esp, 4
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x9ca658
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x9ca6c7
cmp dword [ebp - 0xac], 0
jne 0x9ca6c7
cmp byte [ebp + 0x20], 0
jne 0x9ca6c7
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa0], 0
cmp dword [eax], 0xbab1e
jne 0x9ca6c7
cmp byte [eax + 0x10b], 0
jne 0x9ca6c7
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.009c9df0
add esp, 8
test eax, eax
jne 0x9ca6c7
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x9ca6c7
mov ecx, dword [ebp - 0xcc]
cmp eax, ecx
jg 0x9ca6ba
test eax, eax
jns 0x9ca6bc
mov eax, ecx
cdq
push edx
push eax
call fcn.009e7860
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009c04ba
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.009c04ba
mov esp, ebp
pop ebp
ret