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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xd0], eax
xor edi, edi
mov dword [ebp - 0xb4], ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], 0xa
mov dword [ebp - 0xb0], edi
mov byte [ebp - 0xa1], 0
test ebx, ebx
je 0x10033906
cmp dword [ebx], 0xbab1e
jne 0x10033906
cmp byte [ebx + 0x10f], 0
je 0x100332ec
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jns 0x1003330a
pop esi
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa8]
push eax
push ebx
call fcn.10033160
mov eax, dword [ebp - 0xa8]
add esp, 8
test eax, eax
js 0x1003332c
cmp eax, esi
cmovl esi, eax
mov dword [ebp + 0x14], esi
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.10053f40
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0xc0], eax
movdqu xmmword [ebp - 0x74], xmm0
movdqu xmmword [ebp - 0x64], xmm0
test eax, eax
je 0x100334a3
lea ebx, [ebx]
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.10031d90
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x10033486
mov al, byte [ebp + esi - 0x5c]
xor edi, edi
xor ebx, ebx
test al, 1
je 0x1003338c
lea ebx, [edi + 0x29]
mov edi, 0x300
test al, 2
je 0x100333e5
mov eax, dword [ebp + esi*4 - 0x74]
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
push ecx
push 0x1008
push 0xffff
push eax
or ebx, 0x32
mov dword [ebp - 0xa8], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100333e2
cmp dword [ebp - 0xc8], 1
jne 0x100333e2
push eax
push eax
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.WS2_32.dll_send]
or edi, 0x10
test di, di
je 0x10033459
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
test ecx, ecx
je 0x1003340b
mov eax, dword [ebp + esi*4 - 0x74]
cmp eax, dword [edx + ecx*8 - 8]
jne 0x1003340b
or word [edx + ecx*8 - 4], di
jmp 0x10033459
cmp ecx, dword [ebp - 0xb8]
jb 0x10033446
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10033fa0
add esp, 0x10
test eax, eax
jne 0x100335da
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp + esi*4 - 0x74]
mov dword [edx + ecx*8], eax
mov word [edx + ecx*8 + 4], di
inc ecx
mov dword [ebp - 0xb0], ecx
test ebx, ebx
je 0x1003347c
push ebx
mov ebx, dword [ebp - 0xb4]
push dword [ebx + 0x100]
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x100335f0
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x10033378
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x10033360
mov edi, dword [ebp - 0xb0]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xc0], 0
test esi, esi
je 0x1003361f
mov ebx, dword [ebp - 0xc4]
add ebx, 4
movzx eax, word [ebx]
xor esi, esi
test al, 1
mov ecx, 0x29
cmovne esi, ecx
test al, 2
je 0x100334dd
or esi, 4
test al, 4
je 0x10033532
mov eax, dword [ebx - 4]
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb0], eax
push ecx
push 0x1008
push 0xffff
push eax
or esi, 0x32
mov dword [ebp - 0xcc], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10033532
cmp dword [ebp - 0xc8], 1
jne 0x10033532
push eax
push eax
push eax
push dword [ebp - 0xb0]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xb4]
push esi
push dword [eax + 0x100]
push dword [ebx - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x100335f0
cmp edi, dword [ebp - 0xb8]
jb 0x1003357b
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10033fa0
add esp, 0x10
test eax, eax
jne 0x100335da
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx - 4]
mov dword [edx + edi*8], eax
xor eax, eax
mov word [edx + edi*8 + 4], ax
test byte [ebx], 1
je 0x1003359d
mov eax, 0x300
mov word [edx + edi*8 + 4], ax
test byte [ebx], 2
je 0x100335ac
mov eax, 0x400
or word [edx + edi*8 + 4], ax
test byte [ebx], 4
je 0x100335b7
or word [edx + edi*8 + 4], 0x10
mov ecx, dword [ebp - 0xc0]
inc edi
mov esi, dword [ebp + 0x10]
inc ecx
add ebx, 8
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc0], ecx
cmp ecx, esi
jae 0x10033625
jmp 0x100334c7
pop esi
pop edi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x10033609
mov ecx, dword [ebp - 0xac]
push ecx
call dword [0x1007d2a4]
add esp, 4
pop esi
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xac]
test edi, edi
jne 0x100338c5
mov bl, byte [ebp + 0x20]
test bl, bl
je 0x10033825
mov dword [ebp - 0xb8], edi
mov eax, dword [ebp - 0xb4]
push 0
push dword [ebp + 0x14]
add eax, 0x100
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test esi, esi
je 0x10033755
mov eax, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xc4]
mov edi, dword [ebp - 0xb8]
add ebx, 6
lea eax, [eax*8 + 6]
add eax, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
lea esp, [esp]
movsx eax, word [eax]
lea ecx, [ebp - 0xa0]
push ecx
xor esi, esi
mov dword [ebp - 0xc8], eax
mov eax, dword [ebx - 6]
push esi
push eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xa0], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x100336f2
mov eax, dword [ebp - 0xa0]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x100336d4
or esi, 4
test al, 4
je 0x100336db
or esi, 2
cmp dword [ebp - 0xd0], 0
je 0x100336f2
test edi, edi
jne 0x100336f2
test eax, eax
je 0x100336f2
inc dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb4]
push 0
push dword [eax + 0x100]
push dword [ebp - 0xcc]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test edi, edi
je 0x10033731
mov eax, dword [ebp - 0xc8]
test eax, 0x300
je 0x10033720
or esi, 1
test al, 0x10
je 0x10033727
or esi, 4
test eax, 0x400
je 0x10033731
or esi, 2
mov eax, dword [ebp - 0xc4]
mov word [ebx], si
add eax, 8
add ebx, 8
mov dword [ebp - 0xc4], eax
dec dword [ebp + 0x10]
jne 0x10033690
mov edi, dword [ebp - 0xb0]
cmp dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xb4]
je 0x10033816
mov ebx, dword [eax + 4]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
je 0x10033816
mov edi, dword [ebp - 0xb8]
nop
lea eax, [ebp - 0x74]
push eax
push ebx
call fcn.10031d90
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x100337f9
mov ebx, dword [ebp - 0xb4]
lea ebx, [ebx]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
push 0
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x100337db
cmp dword [ebp - 0xd0], eax
je 0x100337db
test edi, edi
jne 0x100337db
cmp dword [ebp - 0xa0], edi
je 0x100337db
inc dword [ebp - 0xbc]
push 0
push dword [ebx + 0x100]
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x100337a0
mov ebx, dword [ebp - 0xa8]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x10033780
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb4]
push dword [eax + 0x100]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov bl, byte [ebp + 0x20]
cmp byte [ebp - 0xa1], 0
je 0x1003383d
push dword [ebp - 0xac]
call dword [0x1007d2a4]
add esp, 4
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x1003384f
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x100338b2
test edi, edi
jne 0x100338b2
test bl, bl
jne 0x100338b2
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], edi
cmp dword [eax], 0xbab1e
jne 0x100338b2
cmp byte [eax + 0x10f], bl
jne 0x100338b2
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.10033160
add esp, 8
test eax, eax
jne 0x100338b2
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x100338b2
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x100338a5
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.1003a070
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push edx
call fcn.10039c30
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0xb8], ebx
test ebx, ebx
jns 0x100338f5
pop esi
pop edi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
jle 0x1003363e
mov dword [ebp - 0xbc], ebx
jmp 0x10033659
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.100526c8
mov esp, ebp
pop ebp
ret