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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe8]
push edi
mov dword [esp + 0x2c], eax
xor edi, edi
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x84]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov byte [esp + 0xb], 0
test ebx, ebx
je 0x10010b64
cmp dword [ebx], 0xbab1e
jne 0x10010b64
cmp byte [ebx + 0x107], 0
je 0x10010604
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100676f5
add esp, 0xd0
ret
push ebp
mov ebp, dword [esp + 0xec]
test ebp, ebp
jns 0x1001062d
pop ebp
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100676f5
add esp, 0xd0
ret
push esi
mov esi, dword [ebx + 4]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x40], xmm0
movdqu xmmword [esp + 0x50], xmm0
test esi, esi
je 0x1001065d
lea eax, [esp + 0x40]
push eax
push esi
call fcn.1000f030
add edi, dword [esp + 0x5c]
add esp, 8
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x10010644
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.10010480
mov eax, dword [esp + 0x38]
add esp, 8
test eax, eax
js 0x1001067f
cmp eax, ebp
cmovl ebp, eax
mov dword [esp + 0xf0], ebp
mov esi, dword [esp + 0xec]
mov eax, edi
add edi, esi
mov dword [esp + 0x30], eax
cmp byte [esp + 0xfc], 0
je 0x10010699
inc edi
cmp edi, 0xa
jbe 0x100106de
lea eax, [edi*8]
push eax
call dword [0x100b9034]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100106d5
mov eax, 3
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100676f5
add esp, 0xd0
ret
mov eax, dword [esp + 0x30]
mov byte [esp + 0x13], 1
xor ebp, ebp
mov dword [esp + 0x1c], ebp
test eax, eax
je 0x100107e5
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
test eax, eax
je 0x100107e5
jmp 0x10010700
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.1000f030
xor edi, edi
add esp, 8
cmp dword [esp + 0x54], edi
jbe 0x100107cb
mov eax, dword [esp + 0x18]
lea eax, [eax + ebp*8]
mov esi, eax
inc ebp
add eax, 8
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov eax, dword [esp + edi*4 + 0x40]
mov dword [esi], eax
xor eax, eax
mov word [esi + 4], ax
test byte [esp + edi + 0x58], 1
je 0x10010750
lea ebp, [eax + 0x29]
mov eax, 0x300
mov word [esi + 4], ax
test byte [esp + edi + 0x58], 2
je 0x1001079f
mov ebx, dword [esp + edi*4 + 0x40]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 4
push eax
push 0x1008
push 0xffff
push ebx
or ebp, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10010796
cmp dword [esp + 0x38], 1
jne 0x10010796
push eax
push eax
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
or word [esi + 4], 0x10
mov ebx, dword [esp + 0x28]
push ebp
push dword [ebx + 0xf8]
push dword [esp + edi*4 + 0x48]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x10010b16
mov eax, dword [esp + 0x2c]
inc edi
mov ebp, dword [esp + 0x1c]
cmp edi, dword [esp + 0x54]
jb 0x10010721
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10010700
mov esi, dword [esp + 0xec]
mov eax, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x20], ebp
test esi, esi
je 0x100108de
mov esi, dword [esp + 0x18]
mov ecx, 0x29
mov edi, dword [esp + 0x14]
add esi, 4
add edi, 4
lea esi, [esi + eax*8]
lea ecx, [ecx]
movzx eax, word [edi]
xor ebx, ebx
test al, 1
cmovne ebx, ecx
test al, 2
je 0x10010821
or ebx, 4
test al, 4
je 0x10010867
mov ebp, dword [edi - 4]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10010863
cmp dword [esp + 0x38], 1
jne 0x10010863
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x2c]
push dword [ebx + 0xf8]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x10010b16
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x1001089b
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
je 0x100108a8
mov eax, 0x400
or word [esi], ax
test byte [edi], 4
je 0x100108b1
or word [esi], 0x10
mov eax, dword [esp + 0x1c]
inc ebp
inc eax
mov dword [esp + 0x20], ebp
add esi, 8
mov dword [esp + 0x1c], eax
add edi, 8
mov ecx, 0x29
cmp ebp, dword [esp + 0xec]
jb 0x10010810
mov esi, dword [esp + 0xec]
test eax, eax
jne 0x10010b34
cmp byte [esp + 0xfc], al
je 0x10010a85
xor ebp, ebp
push 0
push dword [esp + 0xf4]
lea eax, [ebx + 0xf8]
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test esi, esi
je 0x100109ec
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
add edi, 6
lea eax, [eax*8 + 6]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x10010940
movsx ebx, word [eax]
lea ecx, [esp + 0x60]
mov eax, dword [edi - 6]
xor esi, esi
push ecx
push esi
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x6c], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10010990
mov eax, dword [esp + 0x60]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x10010976
or esi, 4
test al, 4
je 0x1001097d
or esi, 2
cmp dword [esp + 0x34], 0
je 0x10010990
test ebp, ebp
jne 0x10010990
test eax, eax
je 0x10010990
inc dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push 0
push dword [eax + 0xf8]
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebp, ebp
je 0x100109c8
test ebx, 0x300
je 0x100109b5
or esi, 1
test bl, 0x10
je 0x100109bd
or esi, 4
test ebx, 0x400
je 0x100109c8
or esi, 2
mov eax, dword [esp + 0x14]
mov word [edi], si
add eax, 8
add edi, 8
mov dword [esp + 0x14], eax
dec dword [esp + 0xec]
jne 0x10010940
mov ebx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [esp + 0x30], 0
je 0x10010a75
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 4]
mov dword [esp + 0x14], edi
test edi, edi
je 0x10010a75
lea eax, [esp + 0x40]
push eax
push edi
call fcn.1000f030
xor esi, esi
add esp, 8
cmp dword [esp + 0x54], esi
jbe 0x10010a6a
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
push 0
push dword [esp + esi*4 + 0x48]
call ebx
test eax, eax
jne 0x10010a4d
cmp dword [esp + 0x34], eax
je 0x10010a4d
test ebp, ebp
jne 0x10010a4d
cmp dword [esp + 0x60], ebp
je 0x10010a4d
inc dword [esp + 0x24]
push 0
push dword [edi + 0xf8]
push dword [esp + esi*4 + 0x48]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
cmp esi, dword [esp + 0x54]
jb 0x10010a20
mov edi, dword [esp + 0x14]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x10010a06
mov ebx, dword [esp + 0x28]
push dword [ebx + 0xf8]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x10010a99
push dword [esp + 0x18]
call dword [0x100b9038]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10010aa7
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp byte [esp + 0xf8], 0
je 0x10010b0f
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10010b0f
cmp byte [esp + 0xfc], al
jne 0x10010b0f
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x14], eax
jne 0x10010b0f
cmp byte [ebx + 0x107], al
jne 0x10010b0f
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.10010480
add esp, 8
test eax, eax
jne 0x10010b0f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10010b0f
mov ecx, dword [esp + 0xf0]
cmp eax, ecx
jg 0x10010b02
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.10032f00
add esp, 8
xor eax, eax
jmp 0x100106bc
cmp byte [esp + 0x13], 0
je 0x10010b2a
push dword [esp + 0x18]
call dword [0x100b9038]
add esp, 4
mov eax, 4
jmp 0x100106bc
push 0
push 0
push eax
push dword [esp + 0x24]
call fcn.10032a20
mov ebp, eax
add esp, 0x10
test ebp, ebp
jns 0x10010b55
mov eax, 0xc
jmp 0x100106bc
jle 0x100108f5
mov dword [esp + 0x24], ebp
jmp 0x1001090f
mov ecx, dword [esp + 0xd4]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0xd0
ret