Function at 0x100d1880
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x228
mov eax, dword [0x101ad3b4]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
mov ebx, dword [esp + 0x240]
push ebp
push esi
mov esi, dword [esp + 0x23c]
or eax, 0xffffffff
test esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
je 0x100d1b3f
mov ebp, dword [esp + 0x240]
test ebp, ebp
je 0x100d1b3f
test ebx, ebx
je 0x100d1b3f
push edi
mov edi, dword [esp + 0x23c]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x1005
push 0xffff
push edi
mov dword [ebx], 0
mov dword [esp + 0x44], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x100d193d
mov edx, dword [esp + 0x248]
push 4
lea eax, [esp + 0x20]
push eax
push 0x1005
push 0xffff
push edi
mov dword [esp + 0x30], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100d19bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
pop edi
je 0x100d1b5b
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1005
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x244]
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100d1b5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x24]
pop esi
mov dword [esp + 8], 0xffffffff
pop ebp
mov dword [ecx], eax
mov eax, dword [esp + 4]
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100f611a
add esp, 0x228
ret
lea eax, [ebp + 4]
mov ebx, eax
and ebx, 0x1ff
neg ebx
sbb ebx, ebx
neg ebx
shr eax, 9
add ebx, eax
test ebx, ebx
mov dword [esp + 0x18], 0
mov edi, esi
mov dword [esp + 0x20], 0
jle 0x100d1955
jmp 0x100d19f5
mov edi, dword [esp + 0x2c]
push 0x200
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.100f6b80
add esp, 0xc
cmp dword [esp + 0x20], 0
mov esi, ebp
jne 0x100d1a42
cmp ebp, 0x1fc
jb 0x100d1a1f
mov esi, 0x1fc
mov edx, dword [esp + 0x244]
push esi
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x40], edx
call fcn.100f7fd0
add esp, 0xc
add edi, esi
sub ebp, esi
add esi, 4
jmp 0x100d1a62
cmp ebp, 0x200
jl 0x100d1a4f
mov esi, 0x200
push esi
lea edx, [esp + 0x38]
push edi
push edx
call fcn.100f7fd0
add esp, 0xc
add edi, esi
sub ebp, esi
test esi, esi
mov dword [esp + 0x2c], edi
lea edi, [esp + 0x34]
jle 0x100d1ab5
mov edi, edi
mov eax, dword [esp + 0x23c]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100d1acd
test eax, eax
je 0x100d1b2a
cmp eax, esi
jne 0x100d1a9b
add dword [esp + 0x18], eax
sub esi, eax
jmp 0x100d1ab1
jg 0x100d1945
cmp eax, esi
jge 0x100d1945
add dword [esp + 0x18], eax
sub esi, eax
add edi, eax
test esi, esi
jg 0x100d1a70
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, ebx
mov dword [esp + 0x20], eax
jl 0x100d19f1
jmp 0x100d1955
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
je 0x100d1b15
cmp eax, 0x2745
je 0x100d1b15
cmp eax, 0x274a
je 0x100d1b15
cmp eax, 0x2744
je 0x100d1b15
cmp eax, 0x274c
mov dword [esp + 0x14], 1
jne 0x100d194d
mov dword [esp + 0x10], 0xfffffffb
jmp 0x100d1955
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0xfffffffa
jmp 0x100d1955
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
jmp 0x100d1955
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100f611a
add esp, 0x228
ret
cmp dword [esp + 0x10], 1
jne 0x100d1b7e
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100f611a
add esp, 0x228
ret
mov ecx, dword [esp + 0x230]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
add eax, 0xfffffffc
call fcn.100f611a
add esp, 0x228
ret