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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1006d860]
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 0x100335d6
cmp dword [ebx], 0xbab1e
jne 0x100335d6
cmp byte [ebx + 0x10f], 0
je 0x10032fbc
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jns 0x10032fda
pop esi
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa8]
push eax
push ebx
call fcn.10032e30
mov eax, dword [ebp - 0xa8]
add esp, 8
test eax, eax
js 0x10032ffc
cmp eax, esi
cmovl esi, eax
mov dword [ebp + 0x14], esi
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.10053b80
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 0x10033173
lea ebx, [ebx]
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.10031a60
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x10033156
mov al, byte [ebp + esi - 0x5c]
xor edi, edi
xor ebx, ebx
test al, 1
je 0x1003305c
lea ebx, [edi + 0x29]
mov edi, 0x300
test al, 2
je 0x100330b5
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 0x100330b2
cmp dword [ebp - 0xc8], 1
jne 0x100330b2
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 0x10033129
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
test ecx, ecx
je 0x100330db
mov eax, dword [ebp + esi*4 - 0x74]
cmp eax, dword [edx + ecx*8 - 8]
jne 0x100330db
or word [edx + ecx*8 - 4], di
jmp 0x10033129
cmp ecx, dword [ebp - 0xb8]
jb 0x10033116
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10033c50
add esp, 0x10
test eax, eax
jne 0x100332aa
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 0x1003314c
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 0x100332c0
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x10033048
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x10033030
mov edi, dword [ebp - 0xb0]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xc0], 0
test esi, esi
je 0x100332ef
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 0x100331ad
or esi, 4
test al, 4
je 0x10033202
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 0x10033202
cmp dword [ebp - 0xc8], 1
jne 0x10033202
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 0x100332c0
cmp edi, dword [ebp - 0xb8]
jb 0x1003324b
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10033c50
add esp, 0x10
test eax, eax
jne 0x100332aa
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 0x1003326d
mov eax, 0x300
mov word [edx + edi*8 + 4], ax
test byte [ebx], 2
je 0x1003327c
mov eax, 0x400
or word [edx + edi*8 + 4], ax
test byte [ebx], 4
je 0x10033287
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 0x100332f5
jmp 0x10033197
pop esi
pop edi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x100332d9
mov ecx, dword [ebp - 0xac]
push ecx
call dword [0x1006c31c]
add esp, 4
pop esi
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xac]
test edi, edi
jne 0x10033595
mov bl, byte [ebp + 0x20]
test bl, bl
je 0x100334f5
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 0x10033425
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 0x100333c2
mov eax, dword [ebp - 0xa0]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x100333a4
or esi, 4
test al, 4
je 0x100333ab
or esi, 2
cmp dword [ebp - 0xd0], 0
je 0x100333c2
test edi, edi
jne 0x100333c2
test eax, eax
je 0x100333c2
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 0x10033401
mov eax, dword [ebp - 0xc8]
test eax, 0x300
je 0x100333f0
or esi, 1
test al, 0x10
je 0x100333f7
or esi, 4
test eax, 0x400
je 0x10033401
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 0x10033360
mov edi, dword [ebp - 0xb0]
cmp dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xb4]
je 0x100334e6
mov ebx, dword [eax + 4]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
je 0x100334e6
mov edi, dword [ebp - 0xb8]
nop
lea eax, [ebp - 0x74]
push eax
push ebx
call fcn.10031a60
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x100334c9
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 0x100334ab
cmp dword [ebp - 0xd0], eax
je 0x100334ab
test edi, edi
jne 0x100334ab
cmp dword [ebp - 0xa0], edi
je 0x100334ab
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 0x10033470
mov ebx, dword [ebp - 0xa8]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x10033450
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 0x1003350d
push dword [ebp - 0xac]
call dword [0x1006c31c]
add esp, 4
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x1003351f
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x10033582
test edi, edi
jne 0x10033582
test bl, bl
jne 0x10033582
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], edi
cmp dword [eax], 0xbab1e
jne 0x10033582
cmp byte [eax + 0x10f], bl
jne 0x10033582
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.10032e30
add esp, 8
test eax, eax
jne 0x10033582
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x10033582
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x10033575
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.10039dc0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push edx
call fcn.10039980
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0xb8], ebx
test ebx, ebx
jns 0x100335c5
pop esi
pop edi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10052617
mov esp, ebp
pop ebp
ret
jle 0x1003330e
mov dword [ebp - 0xbc], ebx
jmp 0x10033329
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.10052617
mov esp, ebp
pop ebp
ret