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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0xa59064]
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 0x98f9fa
cmp dword [edi], 0xbab1e
jne 0x98f9fa
cmp byte [edi + 0x10b], bl
je 0x98f28e
pop edi
pop esi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xcc], eax
test eax, eax
jns 0x98f2b1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x98f32b
nop
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0098dcb0
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x98f2e9
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x98f2e9
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x98f2fc
cmp dword [ebp + edx*4 - 0x18], 0xffffffff
jae 0x98f2fc
inc ebx
jmp 0x98f301
cmp esi, 0xffffffff
je 0x98f309
inc edx
rol eax, 1
cmp edx, 5
jb 0x98f2d6
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xc8], ebx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x98f2c0
mov edi, dword [ebp - 0xc0]
lea esi, [ebp - 0x68]
lea eax, [ebp - 0xa0]
push eax
push edi
call fcn.0098f110
mov eax, dword [ebp - 0xa0]
add esp, 8
test eax, eax
js 0x98f356
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 0x98f3a2
lea eax, [ecx*8]
push eax
call dword [0xa590f8]
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
test esi, esi
jne 0x98f39b
pop edi
lea eax, [esi + 3]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
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 0x98f509
mov ecx, dword [edi + 4]
mov dword [ebp - 0x9c], ecx
test ecx, ecx
je 0x98f509
nop
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.0098dcb0
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 0x98f427
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x98f427
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 0x98f4a9
mov eax, dword [ebp + edi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x98f4a9
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 0x98f487
cmp dword [ebp - 0xbc], 1
jne 0x98f487
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 0x98f4ae
cmp esi, 0xffffffff
je 0x98f4da
mov eax, dword [ebp - 0xc0]
push ebx
push dword [eax + 0x104]
push esi
call dword [ebp - 0xb0]
test eax, eax
jne 0x98f641
mov eax, dword [ebp - 0xa4]
inc edi
cmp edi, 5
jb 0x98f3e5
mov ecx, dword [ebp - 0x9c]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jne 0x98f3d0
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 0x98f670
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 0x98f5c4
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 0x98f5be
cmp dword [ebp - 0xbc], 1
jne 0x98f5be
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 0x98f641
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
test byte [esi], 1
je 0x98f5f2
mov eax, 0x300
mov word [edi], ax
test byte [esi], 2
movzx ecx, ax
je 0x98f605
or eax, 0x400
mov word [edi], ax
movzx ecx, ax
test byte [esi], 4
je 0x98f610
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 0x98f538
mov esi, dword [ebp - 0xa4]
jmp 0x98f67c
cmp byte [ebp - 0x95], 0
je 0x98f65a
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [0xa590fc]
add esp, 4
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x104]
mov dword [ebp - 0xa4], esi
test eax, eax
jne 0x98f78b
cmp byte [ebp + 0x20], al
je 0x98f94e
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 0x98f876
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 0x98f7d7
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 0x98f7d1
test edi, edi
jne 0x98f7d1
test ebx, ebx
je 0x98f7d1
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 0x98f83a
push 0
push 0
push eax
push dword [ebp - 0xa8]
call fcn.009ac660
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xbc], edi
test edi, edi
jns 0x98f7c0
pop edi
pop esi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
mov esp, ebp
pop ebp
ret
jle 0x98f695
mov dword [ebp - 0xb8], edi
jmp 0x98f6a8
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 0x98f7f6
movzx eax, si
jmp 0x98f83a
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 0x98f6e0
cmp dword [ebp - 0xc8], 0
je 0x98f940
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x98f940
mov ebx, dword [ebp - 0xbc]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0098dcb0
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 0x98f929
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 0x98f907
cmp dword [ebp - 0xd4], eax
je 0x98f907
test ebx, ebx
jne 0x98f907
cmp dword [ebp - 0x94], ebx
je 0x98f907
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 0x98f8c0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x98f8a0
mov eax, dword [ebp - 0xa4]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x98f966
push dword [ebp - 0xa8]
call dword [0xa590fc]
add esp, 4
mov ecx, dword [ebp - 0xd4]
test ecx, ecx
je 0x98f978
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x98f9e7
cmp dword [ebp - 0xac], 0
jne 0x98f9e7
cmp byte [ebp + 0x20], 0
jne 0x98f9e7
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa0], 0
cmp dword [eax], 0xbab1e
jne 0x98f9e7
cmp byte [eax + 0x10b], 0
jne 0x98f9e7
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.0098f110
add esp, 8
test eax, eax
jne 0x98f9e7
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x98f9e7
mov ecx, dword [ebp - 0xcc]
cmp eax, ecx
jg 0x98f9da
test eax, eax
jns 0x98f9dc
mov eax, ecx
cdq
push edx
push eax
call fcn.009acb40
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009857d7
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.009857d7
mov esp, ebp
pop ebp
ret