Function at 0x5fd8d49f
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
mov ecx, dword [0x5fde9010]
mov si, word [ebp + 0xc]
cmp ecx, 0x5fde9010
je 0x5fd8d4db
test byte [ecx + 0x1c], 8
jne 0x5fdc2bbd
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test edi, edi
jne 0x5fdc2bdc
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov word [ebp - 0x20], ax
push 0x10
pop ecx
mov dword [ebp - 0x30], ecx
cmp eax, 0x17
jne 0x5fd8d523
push 0x1c
pop ecx
mov dword [ebp - 0x30], ecx
test si, si
jne 0x5fd9fb8c
mov si, word [ebp - 0x1e]
movzx eax, si
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test si, si
mov esi, eax
jne 0x5fd9fb95
test esi, esi
jne 0x5fdc2c86
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8d56b
test byte [eax + 0x1c], 8
jne 0x5fdc2cc4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5fd83560
mov esp, ebp
pop ebp
ret 8
mov word [ebp - 0x1e], si
jmp 0x5fd8d530
test esi, esi
je 0x5fd8d555
jmp 0x5fdc2bec
movzx eax, si
push eax
push edi
push edx
push ebx
push dword [ecx + 0x14]
mov edx, 0x5fd9fd68
push dword [ecx + 0x10]
push 0x3f
pop ecx
call fcn.5fdce4f9
jmp 0x5fd8d4db
push edi
lea ecx, [ebp - 0x20]
call fcn.5fdd4d34
mov ecx, eax
jmp 0x5fd8d520
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fdc2c2d
test byte [ecx + 0x1c], 8
je 0x5fdc2c2d
push eax
mov ecx, edi
call fcn.5fdd4c5b
push eax
mov eax, dword [ebp - 0x2c]
movzx eax, ax
push eax
push dword [ebp - 0x28]
mov eax, dword [0x5fde9010]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x40
pop ecx
call fcn.5fdce575
cmp dword [ebp - 0x24], 0
je 0x5fdc2c7c
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push 4
push eax
push 0xfffffffffffffffb
mov esi, 0xffff
push esi
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
push 4
push esi
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 0x30]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
jmp 0x5fd9fb95
mov esi, 0x267b
jmp 0x5fd8d56b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
mov eax, dword [0x5fde9010]
cmp eax, 0x5fde9010
je 0x5fd8d56b
test byte [eax + 0x1c], 8
je 0x5fd8d56b
push esi
mov ecx, edi
call fcn.5fdd4c5b
push eax
push dword [ebp - 0x28]
mov eax, dword [0x5fde9010]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x41
jmp 0x5fdc2cea
push dword [ebp - 0x1e]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov ecx, edi
push eax
call fcn.5fdd4c5b
push eax
push dword [ebp - 0x28]
mov eax, dword [0x5fde9010]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x44
pop ecx
call fcn.5fdce66a
jmp 0x5fd8d56b