Function at 0x491c30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbd88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x61f138]
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 0x491cd5
call fcn.00438a80
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp ecx, 0x25c5e09b
jne 0x491c7f
cmp eax, 0x8fafd21e
je 0x491c8e
cmp ecx, 0x257edf0d
jne 0x491c92
cmp eax, 0xb2ab117a
jne 0x491c92
mov al, 1
jmp 0x491c9d
mov eax, dword [esi]
mov ecx, esi
push 1
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], 1
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], ecx
mov dword [eax + 8], 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
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]
push 0x5e4408
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.00436dd0
mov edi, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
cmp ebx, 0xffffffff
jne 0x491d24
or ebx, ebx
jmp 0x491d59
cmp dword [ebp + 0x10], 0x17
jne 0x491d42
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 byte [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [edi], 0
mov dword [edi + 4], eax
mov dword [edi + 8], 0x5e4408
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x491d8c
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
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 0x491dca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5e4408
push eax
lea ecx, [ebp - 0x1c]
call fcn.00436dd0
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
jmp 0x491de1
mov byte [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [edi], 0
mov dword [edi + 4], eax
mov dword [edi + 8], 0x5e4408
cmp dword [edi], 0
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
je 0x491e44
mov esi, dword [ebp + 8]
lea edx, [ebp + 0xb]
mov eax, dword [edi]
mov ecx, ebx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov dword [ebp - 0x14], 0x5e4408
mov byte [ebp + 0xb], 0
call fcn.00491390
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 0x491e66
sub eax, 1
je 0x491e60
mov byte [esi + 4], 0
jmp 0x491e6a
mov byte [esi + 4], 0x20
jmp 0x491e6a
mov byte [esi + 4], 0x10
push dword [ebp + 8]
push ecx
lea ecx, [esi + 8]
call fcn.004966c0
mov eax, dword [ebp + 8]
xor edx, edx
mov byte [ebp - 0x18], dl
mov ecx, dword [ebp - 0x18]
mov dword [edi], edx
mov dword [eax], edx
mov dword [edi + 4], ecx
mov dword [eax + 4], ecx
mov dword [edi + 8], 0x5e4408
mov dword [eax + 8], 0x5e4408
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