Function at 0x1050eda0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x48
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x44], eax
push edi
push 0x50d8
push 1
call fcn.1052130d
mov edi, eax
add esp, 8
test edi, edi
jne 0x1050ede3
push dword [esp + 0x50]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x10a527b4
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.105116c0
add esp, 0x48
ret
mov eax, dword [esp + 0x50]
lea ecx, [esp + 8]
push ebx
push esi
push ecx
push 0x8004667e
push eax
mov dword [edi + 8], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1050f03f
push eax
lea ebx, [edi + 0xc]
push ebx
call fcn.1053b8f0
add esp, 8
test eax, eax
jne 0x1050f03f
lea eax, [edi + 0x10]
push eax
call fcn.1050f2b0
add esp, 4
test eax, eax
je 0x1050f03f
lea eax, [edi + 0x1068]
push eax
call fcn.1050de20
add esp, 4
test eax, eax
je 0x1050f03f
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
push 0x1020304
movq qword [esp + 0x18], xmm0
call dword [sym.imp.WS2_32.dll_htonl]
cmp eax, 0x1020304
mov dword [esp + 0x16], 0xb
mov edx, 0x42
mov dword [esp + 0x24], 0xc
mov ecx, 0x6c
mov dword [esp + 0x2c], 0
cmove ecx, edx
mov dword [esp + 0x28], 0x10a527c4
xor eax, eax
mov byte [esp + 0x14], cl
mov dword [esp + 0x1a], eax
lea esi, [edx - 0x40]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
mov dword [esp + 0x20], eax
test edx, edx
je 0x1050ef0a
movzx ecx, word [edx]
mov esi, 6
mov eax, ecx
mov word [esp + 0x1a], cx
neg ecx
mov dword [esp + 0x34], eax
mov eax, dword [edx + 4]
and ecx, 3
mov dword [esp + 0x3c], ecx
movzx ecx, word [edx + 8]
mov dword [esp + 0x30], eax
mov eax, ecx
mov word [esp + 0x1c], cx
neg ecx
mov dword [esp + 0x44], eax
and ecx, 3
mov eax, dword [edx + 0xc]
mov dword [esp + 0x38], 0x10a527c4
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 0x10a527c4
push ebx
call fcn.1053b920
push esi
lea eax, [esp + 0x28]
push eax
push edi
call fcn.1050dea0
push ebx
mov esi, eax
call fcn.1053b940
add esp, 0x14
test esi, esi
je 0x1050f03f
push 8
mov byte [esp + 0x13], 0xa
call fcn.1051f7bd
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x1050f03f
push 8
push eax
push edi
call fcn.1050f3b0
add esp, 0xc
cmp eax, 8
jne 0x1050f03f
mov ecx, dword [edi + 4]
movzx eax, word [ecx + 6]
lea eax, [eax*4 + 8]
push eax
push ecx
call fcn.10526a8e
add esp, 8
test eax, eax
je 0x1050f03f
mov dword [edi + 4], eax
movzx ecx, word [eax + 6]
add eax, 8
shl ecx, 2
push ecx
push eax
push edi
call fcn.1050f3b0
add esp, 0xc
test eax, eax
jle 0x1050f03f
mov esi, dword [edi + 4]
movzx eax, byte [esi]
sub eax, 0
je 0x1050eff2
sub eax, 2
je 0x1050efe0
push edi
call fcn.1050fe40
add esp, 4
test eax, eax
je 0x1050f03f
push edi
call fcn.1050e9f0
add esp, 4
test eax, eax
je 0x1050f03f
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.105116c0
add esp, 0x48
ret
push esi
call fcn.1050dcd0
add esp, 4
push eax
push esi
call fcn.1050dcc0
jmp 0x1050f002
push esi
call fcn.1050dce0
add esp, 4
push eax
push esi
call fcn.1050dcc0
add esp, 4
push eax
push 2
call fcn.105200f0
push eax
call fcn.105291d6
add esp, 8
push eax
call fcn.1052b0d9
add esp, 0xc
lea eax, [esp + 0xf]
push 1
push eax
push 2
call fcn.105200f0
push eax
call fcn.105291d6
add esp, 8
push eax
call fcn.1052b0d9
add esp, 0xc
cmp edi, 0x10a527b0
je 0x1050f0b7
cmp edi, 0x10a527b4
je 0x1050f0b7
cmp edi, 0x10a527b8
je 0x1050f0b7
cmp edi, 0x10a527bc
je 0x1050f0b7
push dword [edi + 4]
call fcn.1051f7a2
add esp, 4
push 2
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [edi + 0xc]
push eax
call fcn.1053c7f0
lea eax, [edi + 0x10]
push eax
call fcn.1050f190
lea eax, [edi + 0x1068]
push eax
call fcn.1050dd60
push edi
call fcn.1050fdd0
push edi
call fcn.1050e9e0
push edi
call fcn.1051f7a2
add esp, 0x18
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x50]
mov eax, 0x10a527b0
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.105116c0
add esp, 0x48
ret