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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1007e820]
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 0x10033896
cmp dword [ebx], 0xbab1e
jne 0x10033896
cmp byte [ebx + 0x10f], 0
je 0x1003327c
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jns 0x1003329a
pop esi
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa8]
push eax
push ebx
call fcn.100330f0
mov eax, dword [ebp - 0xa8]
add esp, 8
test eax, eax
js 0x100332bc
cmp eax, esi
cmovl esi, eax
mov dword [ebp + 0x14], esi
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.10053f70
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 0x10033433
lea ebx, [ebx]
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.10031d20
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x10033416
mov al, byte [ebp + esi - 0x5c]
xor edi, edi
xor ebx, ebx
test al, 1
je 0x1003331c
lea ebx, [edi + 0x29]
mov edi, 0x300
test al, 2
je 0x10033375
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 0x10033372
cmp dword [ebp - 0xc8], 1
jne 0x10033372
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 0x100333e9
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
test ecx, ecx
je 0x1003339b
mov eax, dword [ebp + esi*4 - 0x74]
cmp eax, dword [edx + ecx*8 - 8]
jne 0x1003339b
or word [edx + ecx*8 - 4], di
jmp 0x100333e9
cmp ecx, dword [ebp - 0xb8]
jb 0x100333d6
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10033ef0
add esp, 0x10
test eax, eax
jne 0x1003356a
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 0x1003340c
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 0x10033580
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x10033308
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x100332f0
mov edi, dword [ebp - 0xb0]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xc0], 0
test esi, esi
je 0x100335af
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 0x1003346d
or esi, 4
test al, 4
je 0x100334c2
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 0x100334c2
cmp dword [ebp - 0xc8], 1
jne 0x100334c2
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 0x10033580
cmp edi, dword [ebp - 0xb8]
jb 0x1003350b
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10033ef0
add esp, 0x10
test eax, eax
jne 0x1003356a
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 0x1003352d
mov eax, 0x300
mov word [edx + edi*8 + 4], ax
test byte [ebx], 2
je 0x1003353c
mov eax, 0x400
or word [edx + edi*8 + 4], ax
test byte [ebx], 4
je 0x10033547
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 0x100335b5
jmp 0x10033457
pop esi
pop edi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x10033599
mov ecx, dword [ebp - 0xac]
push ecx
call dword [0x1007d2e8]
add esp, 4
pop esi
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xac]
test edi, edi
jne 0x10033855
mov bl, byte [ebp + 0x20]
test bl, bl
je 0x100337b5
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 0x100336e5
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 0x10033682
mov eax, dword [ebp - 0xa0]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x10033664
or esi, 4
test al, 4
je 0x1003366b
or esi, 2
cmp dword [ebp - 0xd0], 0
je 0x10033682
test edi, edi
jne 0x10033682
test eax, eax
je 0x10033682
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 0x100336c1
mov eax, dword [ebp - 0xc8]
test eax, 0x300
je 0x100336b0
or esi, 1
test al, 0x10
je 0x100336b7
or esi, 4
test eax, 0x400
je 0x100336c1
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 0x10033620
mov edi, dword [ebp - 0xb0]
cmp dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xb4]
je 0x100337a6
mov ebx, dword [eax + 4]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
je 0x100337a6
mov edi, dword [ebp - 0xb8]
nop
lea eax, [ebp - 0x74]
push eax
push ebx
call fcn.10031d20
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x10033789
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 0x1003376b
cmp dword [ebp - 0xd0], eax
je 0x1003376b
test edi, edi
jne 0x1003376b
cmp dword [ebp - 0xa0], edi
je 0x1003376b
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 0x10033730
mov ebx, dword [ebp - 0xa8]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x10033710
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 0x100337cd
push dword [ebp - 0xac]
call dword [0x1007d2e8]
add esp, 4
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x100337df
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x10033842
test edi, edi
jne 0x10033842
test bl, bl
jne 0x10033842
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], edi
cmp dword [eax], 0xbab1e
jne 0x10033842
cmp byte [eax + 0x10f], bl
jne 0x10033842
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.100330f0
add esp, 8
test eax, eax
jne 0x10033842
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x10033842
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x10033835
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.10039fd0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push edx
call fcn.10039b90
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0xb8], ebx
test ebx, ebx
jns 0x10033885
pop esi
pop edi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
jle 0x100335ce
mov dword [ebp - 0xbc], ebx
jmp 0x100335e9
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.100528f7
mov esp, ebp
pop ebp
ret