Function at 0x4071a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e238
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49a690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor ebx, ebx
mov dword [ebp - 4], 0
test esi, esi
je 0x4072d4
call fcn.0045db30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x18]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x4071ff
call fcn.0045db30
mov ecx, 0x2719
jmp 0x407240
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045db30
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
test edi, edi
jne 0x407246
call fcn.0045db30
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x407285
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x40727b
test byte [eax + 0x1c], 2
je 0x40727b
cmp byte [eax + 0x19], 2
jb 0x40727b
push ecx
push dword [eax + 0x14]
mov edx, 0x48bbf4
push dword [eax + 0x10]
mov ecx, 0x73
call fcn.00401020
add esp, 0xc
mov ebx, 0xffffffe6
jmp 0x40739b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [eax + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e7d0
cmp dword [ebp - 0x20], ebx
jne 0x4072d4
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x4072d4
test byte [eax + 0x1c], 2
je 0x4072d4
cmp byte [eax + 0x19], 5
jb 0x4072d4
push dword [ebp - 0x18]
mov edx, 0x48bbf4
push dword [eax + 0x14]
mov ecx, 0x74
push dword [eax + 0x10]
call fcn.00401020
add esp, 0xc
mov esi, dword [ebp + 8]
test esi, esi
je 0x40739b
mov dword [ebp - 0x20], ebx
call fcn.0045db30
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
push ecx
mov ecx, dword [eax + 0x18]
call fcn.0040b8a0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40734c
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x40727b
test byte [eax + 0x1c], 2
je 0x40727b
cmp byte [eax + 0x19], 2
jb 0x40727b
push ecx
push dword [eax + 0x14]
mov edx, 0x48bbf4
push dword [eax + 0x10]
mov ecx, 0x75
call fcn.00401020
mov ebx, 0xffffffe6
jmp 0x407398
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push dword [eax + 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.0040e890
cmp dword [ebp - 0x20], ebx
jne 0x40739b
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x40739b
test byte [eax + 0x1c], 2
je 0x40739b
cmp byte [eax + 0x19], 5
jb 0x40739b
push dword [ebp - 0x18]
mov edx, 0x48bbf4
push dword [eax + 0x14]
mov ecx, 0x76
push dword [eax + 0x10]
call fcn.00401020
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4073cf
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4073cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea edx, [esi + 8]
lock xadd dword [edx], edi
dec edi
jne 0x4073cf
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045db95
mov esp, ebp
pop ebp
ret