Function at 0x4f2f0b
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.004f3771
add esp, 0x18
mov byte [edi + 0x37], bl
cmp dword [ebp - 8], 1
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
jbe 0x4f3066
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 0x4f2f6d
or byte [edi + 0x20], 2
test dword [ebp - 0xc], 0x4000000
je 0x4f2f7a
or byte [edi + 0x20], 4
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x4f2f86
or byte [edi + 0x20], 8
test ebx, 0x200
je 0x4f2f92
or byte [edi + 0x20], 0x10
test ebx, 0x80000
je 0x4f2f9e
or byte [edi + 0x20], 0x20
test ebx, 0x100000
je 0x4f2faa
or byte [edi + 0x20], 0x40
test ebx, 0x2000
je 0x4f2fb6
or byte [edi + 0x25], 8
test ebx, 0x400000
je 0x4f2fc2
or byte [edi + 0x23], 8
test ebx, 0x800000
je 0x4f2fce
or byte [edi + 0x23], 0x10
test ebx, 0x20000000
je 0x4f2fda
or byte [edi + 0x24], 2
test eax, ebx
je 0x4f2fe2
or byte [edi + 0x24], 8
test bl, 2
je 0x4f2feb
or byte [edi + 0x24], 0x10
test ebx, 0x40000000
je 0x4f3005
call fcn.004f3388
mov cl, byte [edi + 0x25]
add al, al
and cl, 0xfd
or cl, al
mov byte [edi + 0x25], cl
test ebx, ebx
jns 0x4f300d
or byte [edi + 0x2a], 1
test ebx, 0x8000000
je 0x4f3066
xor ecx, ecx
xgetbv
mov ecx, eax
mov dword [ebp - 0xc], edx
and ecx, 6
cmp ecx, 6
jne 0x4f302d
xor ecx, ecx
mov cl, 1
jmp 0x4f302f
xor ecx, ecx
mov edx, 0xe6
mov byte [ebp + 0xb], cl
and eax, edx
cmp eax, edx
jne 0x4f3045
xor eax, eax
mov byte [ebp - 1], 1
jmp 0x4f304a
xor eax, eax
mov byte [ebp - 1], al
test cl, cl
je 0x4f3066
test ebx, 0x10000000
je 0x4f3066
or byte [edi + 0x20], 0x80
test ebx, 0x1000
je 0x4f3066
or byte [edi + 0x24], 4
cmp dword [ebp - 8], 7
jb 0x4f31f1
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 0x4f3094
or byte [edi + 0x23], 0x20
mov esi, 0x100
test esi, eax
je 0x4f30a1
or byte [edi + 0x23], 0x40
xor ebx, ebx
inc ebx
test eax, 0x80000
je 0x4f30ae
or byte [edi + 0x24], bl
test eax, 0x40000
je 0x4f30b9
or byte [edi + 0x25], 4
test eax, 0x20000000
je 0x4f30c4
or byte [edi + 0x24], 0x20
mov ecx, dword [ebp - 0x10]
test esi, ecx
je 0x4f30cf
or byte [edi + 0x24], 0x40
mov edx, dword [ebp - 0xc]
test edx, 0x8000
je 0x4f30de
or byte [edi + 0x2a], 2
cmp byte [ebp + 0xb], 0
je 0x4f31b3
test al, 0x20
je 0x4f30ef
or byte [edi + 0x21], bl
test ecx, 0x200
je 0x4f30fb
or byte [edi + 0x24], 0x80
test ecx, 0x400
je 0x4f3106
or byte [edi + 0x25], bl
cmp byte [ebp - 1], 0
je 0x4f31b3
test eax, 0x10000
je 0x4f311b
or byte [edi + 0x21], 4
test eax, 0x20000
je 0x4f3126
or byte [edi + 0x21], 8
test eax, 0x200000
je 0x4f3131
or byte [edi + 0x21], 0x10
test eax, 0x4000000
je 0x4f313c
or byte [edi + 0x21], 0x20
test eax, 0x8000000
je 0x4f3147
or byte [edi + 0x21], 0x40
test eax, 0x10000000
je 0x4f3152
or byte [edi + 0x21], 0x80
test eax, 0x40000000
je 0x4f315c
or byte [edi + 0x22], bl
test eax, eax
jns 0x4f3164
or byte [edi + 0x22], 2
test cl, 2
je 0x4f316d
or byte [edi + 0x22], 4
test cl, 0x40
je 0x4f3176
or byte [edi + 0x22], 8
test ecx, 0x800
je 0x4f3182
or byte [edi + 0x22], 0x10
test ecx, 0x1000
je 0x4f318e
or byte [edi + 0x22], 0x20
test ecx, 0x4000
je 0x4f319a
or byte [edi + 0x22], 0x40
test dl, 4
je 0x4f31a3
or byte [edi + 0x22], 0x80
test dl, 8
je 0x4f31ab
or byte [edi + 0x23], bl
test esi, edx
je 0x4f31b3
or byte [edi + 0x23], 2
cmp dword [ebp - 0x18], ebx
jb 0x4f31f1
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 0x4f31f1
test byte [ebp - 0x18], 0x10
je 0x4f31e1
or byte [edi + 0x21], 2
cmp byte [ebp - 1], 0
je 0x4f31f1
test byte [ebp - 0x18], 0x20
je 0x4f31f1
or byte [edi + 0x23], 4
push 0x16
pop eax
cmp dword [ebp - 8], eax
jb 0x4f321f
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, accept
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 0x4f327b
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 0x4f3264
or byte [edi + 0x25], 0x10
test byte [ebp - 0x10], 0x20
je 0x4f326e
or byte [edi + 0x23], 0x80
test dword [ebp - 0x10], 0x100
je 0x4f327b
or byte [edi + 0x25], 0x20
mov esi, getsockopt
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jb 0x4f32ef
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.004f3771
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.004f3771
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.004f3771
add esp, 0x48
mov byte [edi + 0x9b], bl
test byte [edi + 0x2a], 1
je 0x4f3322
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.004f3771
add esp, 0x18
mov byte [edi + 0xb7], bl
pop edi
pop esi
pop ebx
leave
ret