Function at 0x100d06b0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x27c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d2b30
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x288]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x288], 1
mov esi, dword [eax]
push edi
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x100d072d
call sub.KERNEL32.dll_GetLastError
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, 0x1c
mov edx, 0x10
cmp dword [eax], 1
cmove edx, ecx
add eax, 4
push edx
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x100d0761
mov ecx, eax
mov dword [ebp - 0x60], eax
xor ebx, ebx
mov al, ch
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x50], eax
jmp 0x100d0786
call sub.WS2_32.dll_WSAGetLastError
mov ebx, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x288], 0
push edi
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x100d0813
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
test ebx, ebx
mov ebx, ecx
mov dword [ecx + 4], eax
mov dword [ecx], 0
je 0x100d0717
cmp byte [ebp - 0x24], 2
jb 0x100d0717
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 1
push eax
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100d07fe
push dword [eax + 8]
push ecx
push dword [edx]
call fcn.10017710
mov edx, dword [ebp - 0x20]
add esp, 0xc
push 4
push 0xc
push edx
call fcn.10017710
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x100d0717
test ebx, ebx
je 0x100d099a
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
test al, al
je 0x100d09a5
cmp al, 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x50]
je 0x100d0836
mov cl, byte [eax + 8]
cmp cl, 0xa
jne 0x100d09b2
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
or eax, ebx
jne 0x100d09c0
test ecx, ecx
jne 0x100d09c0
push 1
push 0x1f
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100d0c1c
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], 0x1f
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x288]
lea edx, [ebp - 0x184]
push 1
push 0x1f
push 0
call fcn.100c1ed0
add esp, 0xc
cmp dword [ebp - 0x288], 1
mov ebx, dword [ebp + 8]
je 0x100d0c2a
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x184]
movsd xmm0, qword [0x101850bb]
lea edx, [ecx + 0x1f]
mov dword [ebp - 0x17c], edx
movsd qword [eax + ecx + 0x17], xmm0
movsd xmm0, qword [0x101850b4]
movsd qword [eax + ecx + 0x10], xmm0
movsd xmm0, qword [0x101850ac]
movsd qword [eax + ecx + 8], xmm0
movsd xmm0, qword [str.cannot_set_a_0_duration_timeoutconnection_timed_out]
movsd qword [eax + ecx], xmm0
mov eax, dword [ebp - 0x17c]
movsd xmm0, qword [ebp - 0x184]
movsd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x280], eax
movsd qword [ebp - 0x288], xmm0
push 4
push 0xc
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100d0c0e
mov esi, eax
mov eax, dword [ebp - 0x280]
movsd xmm0, qword [ebp - 0x288]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
push 4
push 0xc
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100d0c0e
movzx ecx, word [ebp - 0x4c]
mov dl, byte [ebp - 0x4a]
mov dword [eax], esi
mov dword [eax + 4], 0x101843c8
mov byte [eax + 8], 0xb
mov dword [ebx], 2
mov dword [ebx + 4], eax
mov word [eax + 9], cx
mov byte [eax + 0xb], dl
mov eax, dword [ebp - 0x24]
cmp al, 2
jb 0x100d0717
jmp 0x100d07c8
mov ebx, dword [ebp + 8]
mov byte [ebx], 3
jmp 0x100d0717
cmp dword [ebp - 0x20], 0x2733
je 0x100d083f
movsd xmm0, qword [ebp - 0x60]
movsd qword [ebx], xmm0
jmp 0x100d0717
mov edx, 0x10624dd3
mov eax, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x184], 1
mov dword [ebp - 0x180], esi
mul edx
mov eax, 1
shr edx, 6
cmp ecx, 0x3e8
cmovae eax, edx
test ebx, ebx
cmovne eax, edx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x17c]
push 0xfc
push 0
push eax
call fcn.100f20e0
add esp, 0xc
lea eax, [ebp - 0x280]
mov dword [ebp - 0x288], 1
mov dword [ebp - 0x284], esi
push 0xfc
push 0
push eax
call fcn.100f20e0
add esp, 0xc
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x184]
push eax
push edi
push ecx
push 0
push 1
call sub.WS2_32.dll_select
test eax, eax
je 0x100d0a74
mov ebx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x100d0b76
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov eax, dword [ebp - 0x24]
cmp al, 2
jb 0x100d0717
jmp 0x100d07c8
push 1
push 0x14
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100d0c56
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x34]
push 1
push 0x14
push 0
call fcn.100c1ed0
add esp, 0xc
cmp dword [ebp - 0x4c], 1
mov ebx, dword [ebp + 8]
je 0x100d0c64
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
movsd xmm0, qword [0x101850cb]
lea edx, [ecx + 0x14]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x101850d3]
movsd qword [eax + ecx + 8], xmm0
movsd xmm0, qword [0x101850c3]
mov dword [eax + ecx + 0x10], edx
movsd qword [eax + ecx], xmm0
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x34]
movsd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x44], eax
movsd qword [ebp - 0x4c], xmm0
push 4
push 0xc
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100d0c0e
mov esi, eax
mov eax, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x4c]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
push 4
push 0xc
call fcn.100176f0
add esp, 8
test eax, eax
je 0x100d0c0e
movzx ecx, word [ebp - 0x4c]
mov dl, byte [ebp - 0x4a]
mov dword [eax], esi
mov dword [eax + 4], 0x101843c8
mov byte [eax + 8], 0xd
mov dword [ebx], 2
mov dword [ebx + 4], eax
mov word [eax + 9], cx
mov byte [eax + 0xb], dl
mov edx, dword [ebp - 0x20]
cmp byte [ebp - 0x24], 2
jb 0x100d0717
jmp 0x100d0bdf
cmp dword [ebp - 0x184], 1
je 0x100d0bcf
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 4
lea ecx, [ebp - 0x54]
push eax
push ecx
push 0x1007
push 0xffff
push esi
call sub.WS2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x100d0a56
mov eax, dword [ebp - 0x58]
cmp eax, 4
mov dword [ebp - 0x68], eax
jne 0x100d0c87
mov eax, dword [ebp - 0x54]
xor ecx, ecx
test eax, eax
sete cl
lea ecx, [ecx + ecx*2]
cmp cl, 3
jne 0x100d0bf9
mov byte [ebx], 3
mov edx, dword [ebp - 0x20]
cmp byte [ebp - 0x24], 2
jb 0x100d0717
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x20], edx
call dword [ecx]
add esp, 4
jmp 0x100d07e0
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x24]
cmp al, 2
jb 0x100d0717
jmp 0x100d07c8
push 4
push 0xc
call fcn.100da490
add esp, 8
ud2
push 1
push 0x1f
call fcn.100da490
add esp, 8
ud2
cmp dword [ebp - 0x280], 0
jne 0x100d0c3d
call fcn.100da7a0
jmp 0x100d0ce8
push 0x10184050
push 0x28
push str.internal_error:_entered_unreachable_code_::core::macros::panic_macros_
call fcn.100df260
add esp, 0xc
jmp 0x100d0ce8
push 1
push 0x14
call fcn.100da490
add esp, 8
ud2
cmp dword [ebp - 0x44], 0
jne 0x100d0c71
call fcn.100da7a0
jmp 0x100d0ce8
push 0x10184050
push 0x28
push str.internal_error:_entered_unreachable_code_::core::macros::panic_macros_
call fcn.100df260
add esp, 0xc
jmp 0x100d0ce8
lea eax, [ebp - 0x68]
mov dword [ebp - 0x4c], 0x10183efc
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x80], 0x10184ec8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], 0x100bfea0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 0x100bfea0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 2
lea eax, [ebp - 0x4c]
push 0x10184ee8
push eax
call fcn.100cdbe0
add esp, 8
ud2