Function at 0x4477c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5642dd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d21e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x40], esi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], edi
cmp eax, 2
je 0x447812
cmp eax, 0x17
jne 0x44795a
mov eax, dword [ebp + 0x10]
cmp eax, 1
je 0x447823
cmp eax, 5
jne 0x44795a
xor ecx, ecx
lea edi, [esi + 0xc]
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x447892
push 0
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], 0x25a207b9
push eax
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0x4660ddf3
push eax
push 0x10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0xe576e98e
push eax
push 0xc8000006
push dword [edx]
mov dword [ebp - 0x14], 0x3e06748c
mov dword [ebp - 0x48], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [ebp - 0x30]
test eax, eax
lea eax, [esi + 0xc]
cmovne ecx, esi
mov dword [ebp - 0x30], ecx
xchg dword [eax], ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, esi
cmove eax, ecx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x44795a
mov dword [ebp - 0x14], ecx
lea eax, [edi + 0x20]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
push eax
cmp ecx, 2
mov dword [ebp - 0x48], 0x10
mov eax, 0x1c
movq qword [ebp - 0x1c], xmm0
cmove eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [edx]
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], cx
call fcn.0043dac0
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x447901
call fcn.0052c940
cmp dword [edi + 0x24], eax
jne 0x4478f9
cmp dword [edi + 0x20], 0x2726
je 0x447901
mov ecx, dword [esi + 4]
jmp 0x447acd
mov byte [edi + 0x34], 1
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
mov eax, dword [ebp - 0x34]
push edi
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x44]
push dword [eax]
call dword [ebp - 0x38]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x447949
cmp eax, 0x3e5
je 0x447949
mov ecx, dword [ebp - 0x40]
push esi
push eax
push edi
mov ecx, dword [ecx + 4]
call fcn.00444ab0
jmp 0x447ad5
mov ecx, dword [ebp - 0x40]
push edi
mov ecx, dword [ecx + 4]
call fcn.00444bf0
jmp 0x447ad5
lea edx, [esi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x447980
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
call fcn.00435d20
mov dword [ebp - 0x30], eax
lea ecx, [esi + 8]
xchg dword [ecx], eax
mov eax, dword [ebp - 0x34]
test byte [eax + 4], 3
jne 0x4479fc
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x4479a4
call fcn.0052c940
mov dword [edi + 0x20], 0x2719
mov dword [edi + 0x24], eax
jmp 0x447ac7
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.0052c940
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], esi
test edi, edi
js 0x447ac5
call fcn.0052c940
mov edi, dword [ebp - 0x3c]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x20], 0
or byte [eax + 4], 2
lea esi, [edi + 0x20]
push esi
push dword [ebp + 0x18]
push dword [ebp - 0x44]
push dword [eax]
call fcn.0043e4f0
add esp, 0x10
test eax, eax
je 0x447ac7
call fcn.0052c940
cmp dword [esi + 4], eax
jne 0x447a2a
cmp dword [esi], 0x2734
je 0x447a44
call fcn.0052c940
cmp dword [esi + 4], eax
jne 0x447ac7
cmp dword [esi], 0x2733
jne 0x447ac7
call fcn.0052c940
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esi], 0
mov esi, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x48], 1
cmp byte [esi + 0xd8], 0
mov dword [ebp - 4], 0
je 0x447a95
mov ecx, dword [esi + 0x14]
push 0
push edi
call fcn.004456c0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x447ad5
push edi
push dword [ebp - 0x38]
lea ecx, [esi + 0x8c]
call fcn.00442720
mov ecx, dword [esi + 0x14]
add ecx, 0x18
lock inc dword [ecx]
test al, al
je 0x447ab9
lea ecx, [esi + 0x30]
call fcn.00444780
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x447ad5
mov edi, ecx
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x14]
push 0
push edi
call fcn.004456c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005329db
mov esp, ebp
pop ebp
ret 0x18