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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10093034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x6c]
push edi
xor ebx, ebx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov edi, 0x3e8
mov dword [ebp - 0xb0], edi
mov byte [ebp - 0x99], bl
test esi, esi
je 0x100086ec
cmp dword [esi], 0xbab1e
jne 0x100086ec
cmp byte [esi + 0xe2], bl
je 0x1000838a
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x10008404
nop word [eax + eax]
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.10008290
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x100083c6
mov ecx, dword [ebp + edx*4 - 0x1c]
cmp ecx, 0xffffffff
jae 0x100083c6
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x100083d9
cmp dword [ebp + edx*4 - 0x1c], 0xffffffff
jae 0x100083d9
inc ebx
jmp 0x100083de
cmp esi, 0xffffffff
je 0x100083e6
inc edx
rol eax, 1
cmp edx, 5
jb 0x100083b3
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x100083a0
mov esi, dword [ebp - 0xa4]
mov edi, 0x3e8
lea edx, [ebp - 0xb4]
mov ecx, esi
call fcn.1000a090
mov eax, dword [ebp - 0xb4]
test eax, eax
js 0x10008429
cmp eax, 0x3e8
cmovl edi, eax
mov dword [ebp - 0xb0], edi
lea eax, [ebx + 1]
cmp eax, 0xa
jbe 0x10008465
shl eax, 3
push eax
call dword [0x100939a0]
mov edi, eax
add esp, 4
mov dword [ebp - 0xa8], edi
test edi, edi
jne 0x1000845e
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x99], 1
xor edx, edx
mov dword [ebp - 0xa0], edx
test ebx, ebx
je 0x10008604
mov eax, dword [esi + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x10008604
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.10008290
mov dword [ebp - 0xb8], eax
xor esi, esi
nop dword [eax + eax]
xor ecx, ecx
mov edx, 1
mov dword [ebp - 0xac], ecx
or edi, 0xffffffff
mov ecx, esi
shl edx, cl
test eax, edx
je 0x100084f5
mov eax, dword [ebp + esi*4 - 0x1c]
cmp eax, 0xffffffff
jae 0x100084ed
mov ecx, dword [ebp - 0xa8]
mov edi, eax
mov eax, dword [ebp - 0xa0]
mov edx, 0x300
mov dword [ebp - 0xac], 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xac]
jmp 0x100084f7
xor edx, edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xb8], eax
je 0x1000854c
mov eax, dword [ebp + esi*4 - 0x1c]
cmp eax, 0xffffffff
jae 0x1000854c
push 0
push 0
mov edi, eax
or edx, 0x32
push 0
push edi
mov dword [ebp - 0xac], edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xa0]
mov edx, 0x10
mov ecx, dword [ebp - 0xa8]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xa0], eax
jmp 0x10008551
cmp edi, 0xffffffff
je 0x1000857f
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
push ecx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x100085d6
mov eax, dword [ebp - 0xb8]
inc esi
cmp esi, 5
jb 0x100084a0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x10008486
mov edx, dword [ebp - 0xa0]
test edx, edx
je 0x10008604
mov ecx, dword [ebp - 0xa8]
push eax
push eax
call fcn.10022190
mov esi, eax
add esp, 8
test esi, esi
jle 0x10008606
mov edi, dword [ebp - 0xa4]
test esi, esi
jns 0x10008627
mov eax, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x99], 0
je 0x100085ee
push dword [ebp - 0xa8]
call dword [0x100939a8]
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
xor esi, esi
mov edi, dword [ebp - 0xa4]
push 0
push dword [ebp - 0xb0]
push 0
lea eax, [edi + 0xdc]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x100085bc
test ebx, ebx
je 0x100086af
mov ebx, dword [edi + 4]
mov dword [ebp - 0xb0], ebx
test ebx, ebx
je 0x100086af
nop dword [eax]
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.10008290
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x1000869c
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
push 0
push dword [ebp + esi*4 - 0x1c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0xa4]
push 0
push dword [eax + 0xdc]
push dword [ebp + esi*4 - 0x1c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x10008653
mov ebx, dword [ebp - 0xb0]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0xb0], ebx
test ebx, ebx
jne 0x10008640
mov eax, dword [ebp - 0xa4]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x99], 0
je 0x100086d9
push dword [ebp - 0xa8]
call dword [0x100939a8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret