Function at 0x49d470
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbf3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [esi], 0xffffffff
je 0x49d512
mov ecx, dword [0x6ad220]
mov eax, dword [0x6ad224]
cmp ecx, 0x257edfd1
jne 0x49d4b1
cmp eax, 0xb2ab117a
je 0x49d4c0
cmp ecx, 0x257edfd0
jne 0x49d4c4
cmp eax, 0xb2ab117a
jne 0x49d4c4
mov al, 1
jmp 0x49d4d5
mov eax, dword [0x6ad218]
mov ecx, 0x6ad218
push 1
mov eax, dword [eax + 0x18]
call eax
mov edx, dword [ebp + 0x1c]
movzx eax, al
add eax, 2
pop esi
mov dword [edx], 1
mov dword [edx + 4], 0x6ad218
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
push ebx
push edi
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 edi, dword [ebp + 0x1c]
mov ebx, eax
cmp ebx, 0xffffffff
mov ecx, edi
sete dl
call fcn.0049c2c0
cmp ebx, 0xffffffff
jne 0x49d544
or ebx, ebx
jmp 0x49d562
cmp dword [ebp + 0x10], 0x17
jne 0x49d562
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 - 4], 0
cmp ebx, 0xffffffff
jne 0x49d583
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]
jmp 0x49d673
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 0x49d5be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x618bd8
push eax
lea ecx, [ebp - 0x1c]
call fcn.00437490
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov eax, dword [eax + 8]
jmp 0x49d5c5
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
test al, 1
je 0x49d62d
cmp eax, 1
jne 0x49d5e4
cmp dword [edi], 0
setne al
test al, al
je 0x49d62d
mov esi, dword [ebp + 8]
lea edx, [ebp + 0xb]
mov eax, dword [edi]
mov ecx, ebx
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp + 0xb], al
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.0049c360
add esp, 8
mov eax, esi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
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 0x49d64f
sub eax, 1
je 0x49d649
mov byte [esi + 4], 0
jmp 0x49d653
mov byte [esi + 4], 0x20
jmp 0x49d653
mov byte [esi + 4], 0x10
push dword [ebp + 8]
push ecx
lea ecx, [esi + 8]
call fcn.004a1d50
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [edi], edx
xor ecx, ecx
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov dword [eax], edx
mov dword [eax + 4], edx
pop edi
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18