Function at 0x4163c0
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c10c2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x501040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 0x10]
mov byte [ebp - 0x25], 0
cmp eax, 0x11
jne 0x41641a
push 1
push 0
push 0
push eax
push 2
jmp 0x416427
cmp eax, 1
jne 0x416463
push eax
push 0
push 0
push eax
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416463
mov esi, dword [esi + 0xb8]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push 0x1f
push 0
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x416485
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472b2a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 0x78
call fcn.00472d9c
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
lea eax, [esi + 0x28]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esi + 0x40]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
mov byte [ebp - 4], 2
push 0xc
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
call fcn.00472d9c
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x58], eax
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
movups xmmword [esi + 8], xmm0
movq qword [esi + 0x18], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov byte [esi + 0x60], 0
mov dword [esi + 0x64], 0x11
call fcn.0045a070
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [esi], edi
mov esi, dword [ebp - 0x30]
lea eax, [esi + 0x54]
cmp ecx, eax
je 0x416561
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x41655a
mov eax, dword [eax]
push edx
push eax
call fcn.00407620
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x6c]
cmp ecx, eax
je 0x41657d
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x416576
mov eax, dword [eax]
push edx
push eax
call fcn.00407620
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov eax, dword [ebx + 0x10]
movlpd qword [ebp - 0x20], xmm0
mov dword [ecx + 0x64], eax
lea eax, [esi + 0x84]
push eax
mov dword [ebp - 0x20], eax
call fcn.00474b59
add esp, 4
mov byte [ebp - 0x1c], 1
lea eax, [esi + 0x28]
mov dword [ebp - 4], 3
lea ecx, [ebx + 8]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call fcn.004183f0
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
lea eax, [esi + 0x84]
push eax
call fcn.00474b75
add esp, 4
push 1
push edi
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x4165e8
mov al, 1
jmp 0x416465
lea edi, [esi + 0x84]
push edi
call fcn.00474b59
add esp, 4
lea eax, [ebx + 8]
lea ecx, [esi + 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004195c0
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0xd], 0
jne 0x41665b
mov eax, dword [ebx + 0xc]
cmp eax, dword [esi + 0x14]
jb 0x41665b
ja 0x416622
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 0x10]
jb 0x41665b
mov eax, dword [ebp - 0x18]
cmp esi, dword [eax]
je 0x41665b
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x416648
call fcn.00415f40
push 0x78
push dword [ebp - 0x1c]
call fcn.00472d8e
mov eax, dword [ebp - 0x18]
add esp, 8
push esi
mov ecx, eax
call fcn.004190d0
push 0x20
push eax
call fcn.00472d8e
add esp, 8
push edi
call fcn.00474b75
mov al, byte [ebp - 0x25]
add esp, 4
jmp 0x416465