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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0xa21230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, edx
lea edx, [ebp - 0x68]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xb8], ebx
cmp esi, ebx
je 0x9a0a3e
cmp dword [esi], 0xbab1e
jne 0x9a0a3e
cmp dword [esi + 0xe8], ebx
je 0x9a0462
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], ebx
jge 0x9a047c
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push edi
mov dword [ebp - 0x98], eax
cmp eax, ebx
je 0x9a04f3
lea ebx, [ebx]
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0x18]
call fcn.0099f180
xor esi, esi
mov edi, 1
or ecx, 0xffffffff
test eax, edi
je 0x9a04b8
mov edx, dword [ebp + esi*4 - 0x18]
cmp edx, 0xffffffff
jae 0x9a04b8
inc ebx
mov ecx, edx
mov edx, edi
rol edx, 0x10
test eax, edx
je 0x9a04cd
mov edx, dword [ebp + esi*4 - 0x18]
cmp edx, 0xffffffff
jae 0x9a04cd
inc ebx
mov ecx, edx
cmp ecx, 0xffffffff
je 0x9a04da
inc esi
rol edi, 1
cmp esi, 5
jb 0x9a04a5
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 4]
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x9a0490
mov esi, dword [ebp - 0x9c]
lea ecx, [ebp - 0xb0]
push ecx
mov eax, esi
call fcn.0099faf0
mov eax, dword [ebp - 0xb0]
add esp, 4
test eax, eax
js 0x9a0516
cmp eax, dword [ebp + 0x10]
jge 0x9a0516
mov dword [ebp + 0x10], eax
mov edi, ebx
add ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0xb0], edi
je 0x9a0528
inc ebx
cmp ebx, 0xa
jbe 0x9a0568
lea edx, [ebx*8]
push edx
call dword [0xa2233c]
add esp, 4
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x9a055e
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xa0], 0
test edi, edi
je 0x9a0682
mov eax, dword [esi + 4]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x9a0682
jmp 0x9a0590
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0x18]
call fcn.0099f180
mov dword [ebp - 0xa8], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
or esi, 0xffffffff
xor edi, edi
test dword [ebp - 0xa8], eax
je 0x9a05ec
mov eax, dword [ebp + ebx*4 - 0x18]
cmp eax, 0xffffffff
jae 0x9a05ec
mov ecx, dword [ebp - 0xa4]
mov esi, eax
mov eax, dword [ebp - 0xa0]
mov edx, 1
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov edi, 0x29
mov dword [ebp - 0xa0], eax
lea ecx, [ebx + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xa8], eax
je 0x9a0639
mov eax, dword [ebp + ebx*4 - 0x18]
cmp eax, 0xffffffff
jae 0x9a0639
push 0
push 0
mov esi, eax
push 0
push esi
or edi, 0x32
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov edx, 4
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xa0], eax
cmp esi, 0xffffffff
je 0x9a0665
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0xdc]
push edi
push ecx
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x9a0769
inc ebx
cmp ebx, 5
jb 0x9a05a6
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x9a0590
mov esi, dword [ebp - 0x9c]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0xac], 0
jbe 0x9a074e
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xbc]
lea ebx, [ecx + edx*8 + 4]
add esi, 4
nop
movzx eax, word [esi]
xor edi, edi
test al, 1
je 0x9a06be
mov edi, 0x29
test al, 2
je 0x9a06c5
or edi, 4
test al, 4
je 0x9a06dc
mov eax, dword [esi - 4]
push 0
push 0
push 0
push eax
or edi, 0x32
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0xdc]
mov eax, dword [esi - 4]
push edi
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x9a0798
mov ecx, dword [esi - 4]
xor edx, edx
mov dword [ebx - 4], ecx
mov word [ebx], dx
test byte [esi], 1
je 0x9a0714
mov eax, 1
mov word [ebx], ax
test byte [esi], 2
je 0x9a071d
or word [ebx], 2
test byte [esi], 4
je 0x9a0726
or word [ebx], 4
mov eax, dword [ebp - 0xac]
inc dword [ebp - 0xa0]
inc eax
add ebx, 8
add esi, 8
mov dword [ebp - 0xac], eax
cmp eax, dword [ebp + 0xc]
jb 0x9a06b0
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x9a07aa
cmp dword [ebp + 0x18], eax
je 0x9a09ab
mov dword [ebp - 0xac], eax
jmp 0x9a07c8
cmp dword [ebp - 0xb8], 0
je 0x9a0782
mov eax, dword [ebp - 0xa4]
push eax
call dword [0xa22340]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xb8], 0
je 0x9a0782
mov ecx, dword [ebp - 0xa4]
push ecx
jmp 0x9a0779
mov edx, dword [ebp - 0xa4]
push 0
push 0
push eax
push edx
call fcn.009cb980
add esp, 0x10
mov dword [ebp - 0xac], eax
test eax, eax
jg 0x9a07e1
mov eax, dword [ebp + 0x10]
push 0
push eax
push 0
add esi, 0xdc
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x9a07e7
mov dword [ebp - 0xb4], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x9a08c9
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xbc]
lea eax, [ecx + edx*8 + 6]
mov dword [ebp - 0xa8], eax
mov edi, edi
mov ecx, dword [ebp - 0xa8]
movsx edx, word [ecx]
mov ecx, dword [ebx + esi*8]
lea eax, [ebp - 0x94]
push eax
xor edi, edi
push edi
push ecx
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x94], edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x9a0876
mov eax, dword [ebp - 0x94]
test al, 0x29
je 0x9a084c
mov edi, 1
test al, 0x32
je 0x9a0853
or edi, 4
test al, 4
je 0x9a085a
or edi, 2
cmp dword [ebp - 0xc0], 0
je 0x9a0876
cmp dword [ebp - 0xac], 0
jg 0x9a0876
test eax, eax
je 0x9a0876
inc dword [ebp - 0xb4]
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0xdc]
mov ecx, dword [ebx + esi*8]
push 0
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [ebp - 0xac], 0
jle 0x9a08b8
mov al, byte [ebp - 0xbc]
test al, 1
je 0x9a08a5
or edi, 1
test al, 4
je 0x9a08ac
or edi, 4
test al, 2
je 0x9a08b3
or edi, 2
mov word [ebx + esi*8 + 6], di
add dword [ebp - 0xa8], 8
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x9a0810
cmp dword [ebp - 0xb0], 0
je 0x9a0992
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x9a0992
xor ebx, ebx
nop
mov ecx, dword [ebp - 0x98]
lea edx, [ebp - 0x18]
call fcn.0099f180
mov dword [ebp - 0xa8], eax
xor esi, esi
mov edi, 1
jmp 0x9a0910
mov eax, edi
rol eax, 0x10
or eax, edi
test dword [ebp - 0xa8], eax
je 0x9a097b
mov eax, dword [ebp + esi*4 - 0x18]
lea edx, [ebp - 0x94]
push edx
push ebx
push eax
mov dword [ebp - 0x94], ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x9a095a
cmp dword [ebp - 0xc0], ebx
je 0x9a095a
cmp dword [ebp - 0xac], ebx
jg 0x9a095a
cmp dword [ebp - 0x94], ebx
je 0x9a095a
inc dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0xdc]
mov eax, dword [ebp + esi*4 - 0x18]
push ebx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x9a0910
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x98], eax
cmp eax, ebx
jne 0x9a08f0
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 0xdc]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov esi, dword [ebp - 0x9c]
cmp dword [ebp - 0xb8], 0
je 0x9a09c4
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [0xa22340]
add esp, 4
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x9a09d6
mov edx, dword [ebp - 0xb4]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
je 0x9a0a2b
cmp dword [ebp - 0xa0], 0
jne 0x9a0a2b
cmp dword [ebp + 0x18], 0
jne 0x9a0a2b
lea eax, [ebp - 0xb0]
push eax
push esi
mov dword [ebp - 0xb0], 0
call fcn.0099fc30
add esp, 8
test eax, eax
jne 0x9a0a2b
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x9a0a2b
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jg 0x9a0a1e
test eax, eax
jns 0x9a0a20
mov eax, ecx
cdq
push edx
push eax
call fcn.009cb890
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009861d0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.009861d0
mov esp, ebp
pop ebp
ret