Function at 0x40feb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fc8b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x3c]
mov edi, 0x10
mov dword [ebp - 0x464], ebx
cmp dword [eax + 0x14], edi
jb 0x40fef5
mov eax, dword [eax]
push eax
call fcn.0040e970
add esp, 4
mov dword [ebp - 0x460], eax
test eax, eax
je 0x410138
movzx ecx, byte [ebp - 0x45d]
movzx edx, byte [ebp - 0x45e]
mov esi, dword [ebx + 0x74]
push ecx
push edx
movzx ecx, ah
push ecx
movzx edx, al
push edx
push str._d._d._d._d
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebp - 0x468], 0
call fcn.0044f80d
xor eax, eax
add esp, 0x1c
mov ecx, 2
mov dword [ebp - 0x45c], eax
push esi
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov word [ebp - 0x45c], cx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [ebp - 0x30]
push edx
mov word [ebp - 0x45a], ax
call dword [0x47a4d8]
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x458], eax
call fcn.0040e9e0
mov esi, eax
cmp esi, 0xffffffff
je 0x410132
push ebx
lea ebx, [ebp - 0x44c]
call fcn.0040f8c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x43c]
test eax, eax
jne 0x40ffd9
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x438], edi
jb 0x4100fe
mov eax, dword [ebp - 0x44c]
push eax
jmp 0x4100f6
mov ebx, 0x10
mov edi, eax
cmp dword [ebp - 0x438], ebx
jb 0x40fff6
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x460], ecx
jmp 0x410002
lea edx, [ebp - 0x44c]
mov dword [ebp - 0x460], edx
push 4
lea eax, [ebp - 0x46c]
push eax
push 0x1005
push 0xffff
push esi
mov dword [ebp - 0x46c], 0x1f40
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x410032
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410061
xor ebx, ebx
test edi, edi
je 0x41005a
mov edx, dword [ebp - 0x460]
push 0
mov ecx, edi
sub ecx, ebx
push ecx
lea eax, [ebx + edx]
push eax
push esi
call dword [0x47a4e0]
test eax, eax
jle 0x41006e
add ebx, eax
cmp ebx, edi
jb 0x410038
xor eax, eax
mov ebx, 0x10
test eax, eax
je 0x410076
mov dword [ebp - 4], 0xffffffff
jmp 0x4100e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41005c
push 0x3ff
lea edx, [ebp - 0x42f]
push 0
push edx
mov byte [ebp - 0x430], 0
call fcn.00454970
add esp, 0xc
push 0
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call dword [0x47a4dc]
or edi, 0xffffffff
cmp eax, edi
je 0x4100e4
mov edx, dword [ebp - 0x464]
push esi
push edx
lea eax, [ebp - 0x430]
call fcn.0040fcf0
test eax, eax
jne 0x4100da
mov dword [ebp - 4], edi
cmp dword [ebp - 0x438], ebx
jb 0x4100fe
mov eax, dword [ebp - 0x44c]
push eax
jmp 0x4100f6
mov dword [ebp - 0x468], 1
mov dword [ebp - 4], edi
cmp dword [ebp - 0x438], ebx
jb 0x4100fe
mov ecx, dword [ebp - 0x44c]
push ecx
call fcn.0044f731
add esp, 4
push 4
lea edx, [ebp - 0x464]
push edx
push 0xffffff7f
push 0xffff
push esi
mov dword [ebp - 0x464], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [0x47a4cc]
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret