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

Disassembly:
sub esp, 0xb8
mov eax, dword [0x100760c0]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc0]
push ebx
mov ebx, dword [esp + 0xc0]
push esi
push edi
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd8]
lea edi, [esp + 0x70]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0xf], 0
test ebx, ebx
je 0x10010bc3
cmp dword [ebx], 0xbab1e
jne 0x10010bc3
cmp byte [ebx + 0xe2], 0
je 0x10010663
pop edi
lea eax, [esi + 8]
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10038aec
add esp, 0xb8
ret
cmp dword [esp + 0xd4], esi
jge 0x10010689
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10038aec
add esp, 0xb8
ret
push ebp
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x100106ec
lea eax, [esp + 0x60]
push eax
push ebp
call fcn.1000f1e0
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or edi, 0xffffffff
test ebx, eax
je 0x100106bb
mov ecx, dword [esp + edx*4 + 0x60]
cmp ecx, 0xffffffff
jae 0x100106bb
inc esi
mov edi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x100106d0
mov ecx, dword [esp + edx*4 + 0x60]
cmp ecx, 0xffffffff
jae 0x100106d0
inc esi
mov edi, ecx
cmp edi, 0xffffffff
je 0x100106dd
inc edx
rol eax, 1
cmp edx, 5
jb 0x100106a8
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x10010691
mov ebx, dword [esp + 0x14]
lea edi, [esp + 0x74]
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.100104c0
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
js 0x10010715
mov ecx, dword [esp + 0xd8]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xd8], ecx
mov ebp, esi
add esi, dword [esp + 0xd4]
cmp byte [esp + 0xe4], 0
mov dword [esp + 0x1c], ebp
je 0x1001072d
inc esi
cmp esi, 0xa
jbe 0x1001076e
lea eax, [esi*8]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x10010769
lea eax, [edi + 3]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10038aec
add esp, 0xb8
ret
mov byte [esp + 0x13], 1
xor edx, edx
mov dword [esp + 0x18], edx
test ebp, ebp
je 0x1001086b
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1001086b
jmp 0x10010790
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.1000f1e0
add esp, 8
mov ebp, eax
xor esi, esi
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test ebp, edx
mov edx, dword [esp + 0x18]
je 0x100107de
mov eax, dword [esp + esi*4 + 0x60]
cmp eax, 0xffffffff
jae 0x100107de
mov edi, eax
mov ecx, 0x300
mov eax, dword [esp + 0x20]
mov ebx, 0x29
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [esp + 0x18], edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x10010821
mov eax, dword [esp + esi*4 + 0x60]
cmp eax, 0xffffffff
jae 0x10010821
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x18]
mov ecx, 0x10
mov eax, dword [esp + 0x20]
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [esp + 0x18], edx
cmp edi, 0xffffffff
je 0x10010850
push ebx
mov ebx, dword [esp + 0x18]
push dword [ebx + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x10010941
inc esi
cmp esi, 5
jb 0x100107a2
mov edx, dword [esp + 0x18]
jmp 0x10010854
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10010790
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0xd4]
xor ebp, ebp
test esi, esi
je 0x10010926
lea esi, [edi + 4]
mov ecx, 0x29
mov edi, dword [esp + 0x2c]
lea esi, [esi + edx*8]
add edi, 4
mov edi, edi
movzx eax, word [edi]
xor ebx, ebx
test al, 1
cmovne ebx, ecx
test al, 2
je 0x100108a1
or ebx, 4
test al, 4
je 0x100108b7
push 0
push 0
push 0
push dword [edi - 4]
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_send]
push ebx
mov ebx, dword [esp + 0x18]
push dword [ebx + 0xdc]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x10010941
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x100108e7
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
je 0x100108f4
mov eax, 0x400
or word [esi], ax
test byte [edi], 4
je 0x100108fd
or word [esi], 0x10
mov edx, dword [esp + 0x18]
inc ebp
inc edx
add esi, 8
add edi, 8
mov dword [esp + 0x18], edx
mov ecx, 0x29
cmp ebp, dword [esp + 0xd4]
jb 0x10010890
mov esi, dword [esp + 0xd4]
test edx, edx
jne 0x1001095f
cmp byte [esp + 0xe4], dl
je 0x10010b2d
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x24], edx
jmp 0x1001097f
cmp byte [esp + 0x13], 0
je 0x10010955
push dword [esp + 0x20]
call dword [0x10076004]
add esp, 4
mov eax, 4
jmp 0x10010750
mov ebp, dword [esp + 0x20]
push 0
push 0
push edx
push ebp
call fcn.100267d0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x24], ebx
test ebx, ebx
jg 0x1001099b
mov ebx, dword [esp + 0x14]
push 0
push dword [esp + 0xdc]
lea ecx, [ebx + 0xdc]
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x1001099f
mov dword [esp + 0x28], ebx
xor edi, edi
test esi, esi
je 0x10010a6d
mov eax, dword [esp + 0x1c]
lea ebp, [ebp + eax*8]
mov eax, dword [esp + 0x2c]
add ebp, 6
jmp 0x100109c0
movsx ebx, word [ebp]
lea ecx, [esp + 0x34]
push ecx
xor esi, esi
push esi
push dword [eax + edi*8]
mov dword [esp + 0x40], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10010a0f
mov eax, dword [esp + 0x34]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x100109f2
or esi, 4
test al, 4
je 0x100109f9
or esi, 2
cmp dword [esp + 0x30], 0
je 0x10010a0f
cmp dword [esp + 0x24], 0
jg 0x10010a0f
test eax, eax
je 0x10010a0f
inc dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x34]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [esp + 0x24], 0
jle 0x10010a58
test ebx, 0x300
je 0x10010a3a
or esi, 1
test bl, 0x10
je 0x10010a42
or esi, 4
test ebx, 0x400
je 0x10010a4d
or esi, 2
mov eax, dword [esp + 0x2c]
mov word [eax + edi*8 + 6], si
jmp 0x10010a5c
mov eax, dword [esp + 0x2c]
inc edi
add ebp, 8
cmp edi, dword [esp + 0xd4]
jb 0x100109c0
cmp dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x14]
je 0x10010b21
mov ebp, dword [ebx + 4]
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x10010b21
jmp 0x10010a90
lea eax, [esp + 0x60]
push eax
push ebp
call fcn.1000f1e0
mov ebp, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
xor edi, edi
mov esi, 1
jmp 0x10010ab0
mov ecx, esi
rol ecx, 0x10
or ecx, esi
test ebx, ecx
je 0x10010b0a
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0
push dword [esp + edi*4 + 0x68]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10010aec
cmp dword [esp + 0x30], eax
je 0x10010aec
test ebp, ebp
jg 0x10010aec
cmp dword [esp + 0x34], eax
je 0x10010aec
inc dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0xdc]
push dword [esp + edi*4 + 0x68]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc edi
rol esi, 1
cmp edi, 5
jb 0x10010ab0
mov ebp, dword [esp + 0x1c]
mov ebp, dword [ebp + 4]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x10010a90
mov ebx, dword [esp + 0x14]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x10010b41
push dword [esp + 0x20]
call dword [0x10076004]
add esp, 4
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10010b4f
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xe0], 0
je 0x10010bbc
cmp dword [esp + 0x18], 0
jne 0x10010bbc
cmp byte [esp + 0xe4], 0
jne 0x10010bbc
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x1c], 0
jne 0x10010bbc
cmp byte [ebx + 0xe2], 0
jne 0x10010bbc
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.100104c0
add esp, 8
test eax, eax
jne 0x10010bbc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10010bbc
mov ecx, dword [esp + 0xd8]
cmp eax, ecx
jg 0x10010baf
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.10026bf0
add esp, 8
xor eax, eax
jmp 0x10010750
mov ecx, dword [esp + 0xc0]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10038aec
add esp, 0xb8
ret