Function at 0x4a7530
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53c160]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0xffffffff
je 0x4a75e0
mov ecx, dword [0x53ce70]
mov eax, dword [0x53ce74]
mov dword [ebp - 0x1c], 1
cmp ecx, 0x25c5e09b
jne 0x4a7584
cmp eax, 0x8fafd21e
je 0x4a7593
cmp ecx, 0x257edf0d
jne 0x4a7597
cmp eax, 0xb2ab117a
jne 0x4a7597
mov al, 1
jmp 0x4a75a8
mov eax, dword [0x53ce68]
mov ecx, 0x53ce68
push 1
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x1c]
movq xmm0, qword [ebp - 0x1c]
movq qword [eax], xmm0
mov dword [eax + 8], 0x53ce68
mov eax, dword [ebp + 8]
movq qword [eax], xmm0
mov dword [eax + 8], 0x53ce68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0x1c]
test eax, eax
mov dword [ebp - 0x1c], eax
setne byte [ebp - 0x18]
movq xmm0, qword [ebp - 0x1c]
movq qword [edi], xmm0
mov dword [edi + 8], 0x518630
cmp ebx, 0xffffffff
jne 0x4a762a
or ebx, ebx
jmp 0x4a7663
cmp dword [ebp + 0x10], 0x17
jne 0x4a7648
push 4
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi], xmm0
mov dword [edi + 8], 0x518630
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x4a7694
mov eax, dword [ebp + 8]
movq xmm0, qword [edi]
mov ecx, dword [edi + 8]
movq qword [eax], xmm0
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 0x10]
push 0
push 0
mov eax, dword [eax + 4]
push dword [eax + 0x14]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test eax, eax
jne 0x4a76bd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
mov dword [ebp - 0x1c], eax
setne byte [ebp - 0x18]
jmp 0x4a76c8
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi], xmm0
mov dword [edi + 8], 0x518630
movq xmm0, qword [edi]
mov eax, dword [edi + 8]
movq qword [ebp - 0x1c], xmm0
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
je 0x4a773a
mov esi, dword [ebp + 8]
lea edx, [ebp + 0xb]
movq xmm0, xmm0
mov dword [ebp - 0x1c], 0
mov ecx, ebx
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x518630
movq qword [esi], xmm0
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov byte [ebp + 0xb], 0
call fcn.004a7010
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], 0xffffffff
mov dword [esi], ebx
sub eax, 1
je 0x4a775c
sub eax, 1
je 0x4a7756
mov byte [esi + 4], 0
jmp 0x4a7760
mov byte [esi + 4], 0x20
jmp 0x4a7760
mov byte [esi + 4], 0x10
push dword [ebp + 8]
push ecx
lea ecx, [esi + 8]
call fcn.004aa7a0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi], xmm0
movq qword [eax], xmm0
mov dword [edi + 8], 0x518630
mov dword [eax + 8], 0x518630
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18