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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x10209f80]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xe0]
push ebx
mov ebx, dword [esp + 0xe0]
push ebp
xor ebp, ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x100fcb7b
cmp dword [ebx], 0xbab1e
jne 0x100fcb7b
cmp byte [ebx + 0x167], 0
je 0x100fc654
lea eax, [ebp + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100f3936
add esp, 0xd8
ret
mov ecx, dword [esp + 0xf0]
test ecx, ecx
jns 0x100fc67b
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100f3936
add esp, 0xd8
ret
push esi
push edi
push 0xa
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.10121710
lea eax, [ebx + 0x1c]
push eax
mov dword [esp + 0x64], eax
call fcn.100f9110
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100fc6dc
push edi
call fcn.100f9100
lea esi, [eax + 0x60]
push esi
push eax
call fcn.100faf20
lea eax, [esp + 0x40]
push esi
push eax
call fcn.101215a0
add esp, 0x14
test eax, eax
jne 0x100fc959
push edi
call fcn.100fede0
mov edi, eax
add esp, 4
test edi, edi
jne 0x100fc6a7
lea eax, [esp + 0x34]
push eax
lea eax, [ebx + 0xc8]
push eax
call fcn.101029d0
add esp, 8
test eax, eax
jne 0x100fc959
mov eax, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0xf4], esi
jbe 0x100fc779
mov edi, dword [esp + 0x28]
nop
movzx ecx, word [edi + esi*8 + 4]
mov al, cl
mov bl, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x300
mov edx, eax
or eax, 0x400
movzx ecx, ax
test bl, 2
movzx ebx, word [edi + esi*8 + 4]
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 0x10
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
push eax
mov eax, edi
push dword [eax + esi*8]
lea eax, [esp + 0x3c]
push eax
call fcn.101216d0
add esp, 0xc
test eax, eax
jne 0x100fc959
inc esi
cmp esi, dword [esp + 0xf4]
jb 0x100fc710
mov ebx, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor edi, edi
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x38], edi
jbe 0x100fc831
nop
mov eax, dword [esp + 0x34]
movzx edx, word [eax + edi*8 + 4]
lea eax, [eax + edi*8]
mov ecx, edx
mov dword [esp + 0x10], eax
and ecx, 0x300
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov esi, ecx
or esi, 4
test edx, 0x400
cmove esi, ecx
test dl, 0x10
je 0x100fc806
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
push ecx
push 0x1008
push 0xffff
push eax
or esi, 0x32
mov dword [esp + 0x24], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100fc806
cmp dword [esp + 0x24], 1
jne 0x100fc806
push eax
push eax
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
test esi, esi
je 0x100fc826
mov eax, dword [esp + 0x14]
push esi
push dword [eax + 0x158]
mov eax, dword [esp + 0x3c]
push dword [eax + edi*8]
call ebx
test eax, eax
jne 0x100fc959
inc edi
cmp edi, dword [esp + 0x38]
jb 0x100fc790
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.100fc4d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0xf8]
test eax, eax
js 0x100fc863
cmp eax, esi
cmovl esi, eax
mov dword [esp + 0xf8], esi
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x100fc966
mov dl, byte [esp + 0x104]
test dl, dl
je 0x100fcae6
xor edi, edi
mov dword [esp + 0x10], edi
push 0
push esi
push 0
add ebx, 0x158
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ebx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0xf4], ecx
jbe 0x100fca2b
mov edx, dword [esp + 0x1c]
shl edx, 3
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x34]
xor esi, esi
movsx eax, word [edx + eax + 6]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], esi
lea eax, [eax + ecx*8]
lea ecx, [esp + 0x68]
mov dword [esp + 0x50], eax
mov eax, dword [eax]
push ecx
push esi
push eax
mov dword [esp + 0x50], eax
call ebx
test eax, eax
jne 0x100fc99b
mov ecx, dword [esp + 0x68]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x30], 0
movzx eax, cx
mov esi, eax
je 0x100fc99b
test edi, edi
jne 0x100fc99b
test ebx, ebx
je 0x100fc99b
mov eax, dword [esp + 0x14]
inc ebp
push edi
push dword [eax + 0x158]
push dword [esp + 0x4c]
call dword [esp + 0x38]
movzx eax, si
jmp 0x100fc9fe
mov dword [esp + 0x18], 3
jmp 0x100fcb51
push 0
push 0
push eax
push dword [esp + 0x40]
call fcn.10121220
mov edi, eax
add esp, 0x10
mov dword [esp + 0x10], edi
test edi, edi
jns 0x100fc98e
mov dword [esp + 0x18], 0xc
jmp 0x100fcb51
jle 0x100fc884
mov ebp, edi
jmp 0x100fc898
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0x158]
push dword [esp + 0x4c]
call dword [esp + 0x38]
test edi, edi
jne 0x100fc9b8
movzx eax, si
jmp 0x100fc9fe
mov ebx, dword [esp + 0x48]
mov eax, esi
or eax, 1
test dword [esp + 0x48], 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test ebx, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
add edx, 8
mov dword [esp + 0x20], edx
mov word [ecx + 6], ax
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x4c], ecx
cmp ecx, dword [esp + 0xf4]
jb 0x100fc8c0
cmp dword [esp + 0x1c], 0
je 0x100fcacb
push dword [esp + 0x54]
call fcn.100f9110
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100fcacb
nop
push eax
call fcn.100f9100
mov ebx, eax
xor edi, edi
add esp, 4
cmp dword [ebx + 0x74], edi
jbe 0x100fcab7
lea esi, [ebx + 0x60]
nop word [eax + eax]
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push eax
push 0
push dword [esi]
call dword [esp + 0x30]
test eax, eax
jne 0x100fca9c
cmp dword [esp + 0x30], eax
je 0x100fca9c
cmp dword [esp + 0x10], eax
jne 0x100fca9c
cmp dword [esp + 0x68], eax
je 0x100fca9c
inc ebp
mov eax, dword [esp + 0x14]
push 0
push dword [eax + 0x158]
push dword [esi]
call dword [esp + 0x38]
inc edi
add esi, 4
cmp edi, dword [ebx + 0x74]
jb 0x100fca70
push dword [esp + 0x1c]
call fcn.100fede0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100fca50
mov ebx, dword [esp + 0x14]
push dword [ebx + 0x158]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov eax, dword [esp + 0x38]
mov dl, byte [esp + 0x104]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x100fcaf0
mov dword [ecx], ebp
cmp byte [esp + 0x100], 0
je 0x100fcb51
test eax, eax
jne 0x100fcb51
test dl, dl
jne 0x100fcb51
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x10], eax
jne 0x100fcb51
cmp byte [ebx + 0x167], dl
jne 0x100fcb51
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.100fc4d0
add esp, 0xc
test eax, eax
jne 0x100fcb51
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100fcb51
mov ecx, dword [esp + 0xf8]
cmp eax, ecx
jg 0x100fcb44
test eax, eax
jns 0x100fcb46
mov eax, ecx
cdq
push edx
push eax
call fcn.10121860
add esp, 8
lea eax, [esp + 0x34]
push eax
call fcn.101216f0
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100f3936
add esp, 0xd8
ret
mov ecx, dword [esp + 0xdc]
mov eax, 1
pop ebp
pop ebx
xor ecx, esp
call fcn.100f3936
add esp, 0xd8
ret