Function at 0x4ed6cd
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edi + 0x2f]
push eax
lea eax, [edi + 0x33]
push eax
lea eax, [edi + 0x2b]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
call fcn.004edf33
add esp, 0x18
mov byte [edi + 0x37], bl
cmp dword [ebp - 8], 1
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
jbe 0x4ed828
xor eax, eax
xor ecx, ecx
inc eax
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov eax, 0x2000000
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
test dword [ebp - 0xc], eax
je 0x4ed72f
or byte [edi + 0x20], 2
test dword [ebp - 0xc], 0x4000000
je 0x4ed73c
or byte [edi + 0x20], 4
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x4ed748
or byte [edi + 0x20], 8
test ebx, 0x200
je 0x4ed754
or byte [edi + 0x20], 0x10
test ebx, 0x80000
je 0x4ed760
or byte [edi + 0x20], 0x20
test ebx, 0x100000
je 0x4ed76c
or byte [edi + 0x20], 0x40
test ebx, 0x2000
je 0x4ed778
or byte [edi + 0x25], 8
test ebx, 0x400000
je 0x4ed784
or byte [edi + 0x23], 8
test ebx, 0x800000
je 0x4ed790
or byte [edi + 0x23], 0x10
test ebx, 0x20000000
je 0x4ed79c
or byte [edi + 0x24], 2
test eax, ebx
je 0x4ed7a4
or byte [edi + 0x24], 8
test bl, 2
je 0x4ed7ad
or byte [edi + 0x24], 0x10
test ebx, 0x40000000
je 0x4ed7c7
call fcn.004edb4a
mov cl, byte [edi + 0x25]
add al, al
and cl, 0xfd
or cl, al
mov byte [edi + 0x25], cl
test ebx, ebx
jns 0x4ed7cf
or byte [edi + 0x2a], 1
test ebx, 0x8000000
je 0x4ed828
xor ecx, ecx
xgetbv
mov ecx, eax
mov dword [ebp - 0xc], edx
and ecx, 6
cmp ecx, 6
jne 0x4ed7ef
xor ecx, ecx
mov cl, 1
jmp 0x4ed7f1
xor ecx, ecx
mov edx, 0xe6
mov byte [ebp + 0xb], cl
and eax, edx
cmp eax, edx
jne 0x4ed807
xor eax, eax
mov byte [ebp - 1], 1
jmp 0x4ed80c
xor eax, eax
mov byte [ebp - 1], al
test cl, cl
je 0x4ed828
test ebx, 0x10000000
je 0x4ed828
or byte [edi + 0x20], 0x80
test ebx, 0x1000
je 0x4ed828
or byte [edi + 0x24], 4
cmp dword [ebp - 8], 7
jb 0x4ed9b3
push 7
pop eax
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x14]
test al, 8
je 0x4ed856
or byte [edi + 0x23], 0x20
mov esi, 0x100
test esi, eax
je 0x4ed863
or byte [edi + 0x23], 0x40
xor ebx, ebx
inc ebx
test eax, 0x80000
je 0x4ed870
or byte [edi + 0x24], bl
test eax, 0x40000
je 0x4ed87b
or byte [edi + 0x25], 4
test eax, 0x20000000
je 0x4ed886
or byte [edi + 0x24], 0x20
mov ecx, dword [ebp - 0x10]
test esi, ecx
je 0x4ed891
or byte [edi + 0x24], 0x40
mov edx, dword [ebp - 0xc]
test edx, 0x8000
je 0x4ed8a0
or byte [edi + 0x2a], 2
cmp byte [ebp + 0xb], 0
je 0x4ed975
test al, 0x20
je 0x4ed8b1
or byte [edi + 0x21], bl
test ecx, 0x200
je 0x4ed8bd
or byte [edi + 0x24], 0x80
test ecx, 0x400
je 0x4ed8c8
or byte [edi + 0x25], bl
cmp byte [ebp - 1], 0
je 0x4ed975
test eax, 0x10000
je 0x4ed8dd
or byte [edi + 0x21], 4
test eax, 0x20000
je 0x4ed8e8
or byte [edi + 0x21], 8
test eax, 0x200000
je 0x4ed8f3
or byte [edi + 0x21], 0x10
test eax, 0x4000000
je 0x4ed8fe
or byte [edi + 0x21], 0x20
test eax, 0x8000000
je 0x4ed909
or byte [edi + 0x21], 0x40
test eax, 0x10000000
je 0x4ed914
or byte [edi + 0x21], 0x80
test eax, 0x40000000
je 0x4ed91e
or byte [edi + 0x22], bl
test eax, eax
jns 0x4ed926
or byte [edi + 0x22], 2
test cl, 2
je 0x4ed92f
or byte [edi + 0x22], 4
test cl, 0x40
je 0x4ed938
or byte [edi + 0x22], 8
test ecx, 0x800
je 0x4ed944
or byte [edi + 0x22], 0x10
test ecx, 0x1000
je 0x4ed950
or byte [edi + 0x22], 0x20
test ecx, 0x4000
je 0x4ed95c
or byte [edi + 0x22], 0x40
test dl, 4
je 0x4ed965
or byte [edi + 0x22], 0x80
test dl, 8
je 0x4ed96d
or byte [edi + 0x23], bl
test esi, edx
je 0x4ed975
or byte [edi + 0x23], 2
cmp dword [ebp - 0x18], ebx
jb 0x4ed9b3
push 7
pop eax
mov ecx, ebx
push ebx
cpuid
mov esi, ebx
pop ebx
cmp byte [ebp + 0xb], 0
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
je 0x4ed9b3
test byte [ebp - 0x18], 0x10
je 0x4ed9a3
or byte [edi + 0x21], 2
cmp byte [ebp - 1], 0
je 0x4ed9b3
test byte [ebp - 0x18], 0x20
je 0x4ed9b3
or byte [edi + 0x23], 4
push 0x16
pop eax
cmp dword [ebp - 8], eax
jb 0x4ed9e1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov ecx, 0xf4240
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x24]
mul ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, bind
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, reloc.WS2_32.dll_accept
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp dword [ebp - 0x28], eax
jb 0x4eda3d
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
test byte [ebp - 0x10], 1
je 0x4eda26
or byte [edi + 0x25], 0x10
test byte [ebp - 0x10], 0x20
je 0x4eda30
or byte [edi + 0x23], 0x80
test dword [ebp - 0x10], 0x100
je 0x4eda3d
or byte [edi + 0x25], 0x20
mov esi, getsockname
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jb 0x4edab1
lea eax, [edi + 0x77]
push eax
lea eax, [edi + 0x73]
push eax
lea eax, [edi + 0x6f]
push eax
lea eax, [edi + 0x6b]
push eax
push ebx
push reloc.WS2_32.dll_bind
call fcn.004edf33
lea eax, [edi + 0x87]
push eax
lea eax, [edi + 0x83]
push eax
lea eax, [edi + 0x7f]
push eax
lea eax, [edi + 0x7b]
push eax
push ebx
push reloc.WS2_32.dll_closesocket
call fcn.004edf33
lea eax, [edi + 0x97]
push eax
lea eax, [edi + 0x93]
push eax
lea eax, [edi + 0x8f]
push eax
lea eax, [edi + 0x8b]
push eax
push ebx
push esi
call fcn.004edf33
add esp, 0x48
mov byte [edi + 0x9b], bl
test byte [edi + 0x2a], 1
je 0x4edae4
lea eax, [edi + 0xb3]
push eax
lea eax, [edi + 0xaf]
push eax
lea eax, [edi + 0xab]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x40000000
call fcn.004edf33
add esp, 0x18
mov byte [edi + 0xb7], bl
pop edi
pop esi
pop ebx
leave
ret