Function at 0x4f3000
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.004f3866
add esp, 0x18
mov byte [edi + 0x37], bl
cmp dword [ebp - 8], 1
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
jbe 0x4f315b
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 0x4f3062
or byte [edi + 0x20], 2
test dword [ebp - 0xc], 0x4000000
je 0x4f306f
or byte [edi + 0x20], 4
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x4f307b
or byte [edi + 0x20], 8
test ebx, 0x200
je 0x4f3087
or byte [edi + 0x20], 0x10
test ebx, 0x80000
je 0x4f3093
or byte [edi + 0x20], 0x20
test ebx, 0x100000
je 0x4f309f
or byte [edi + 0x20], 0x40
test ebx, 0x2000
je 0x4f30ab
or byte [edi + 0x25], 8
test ebx, 0x400000
je 0x4f30b7
or byte [edi + 0x23], 8
test ebx, 0x800000
je 0x4f30c3
or byte [edi + 0x23], 0x10
test ebx, 0x20000000
je 0x4f30cf
or byte [edi + 0x24], 2
test eax, ebx
je 0x4f30d7
or byte [edi + 0x24], 8
test bl, 2
je 0x4f30e0
or byte [edi + 0x24], 0x10
test ebx, 0x40000000
je 0x4f30fa
call fcn.004f347d
mov cl, byte [edi + 0x25]
add al, al
and cl, 0xfd
or cl, al
mov byte [edi + 0x25], cl
test ebx, ebx
jns 0x4f3102
or byte [edi + 0x2a], 1
test ebx, 0x8000000
je 0x4f315b
xor ecx, ecx
xgetbv
mov ecx, eax
mov dword [ebp - 0xc], edx
and ecx, 6
cmp ecx, 6
jne 0x4f3122
xor ecx, ecx
mov cl, 1
jmp 0x4f3124
xor ecx, ecx
mov edx, 0xe6
mov byte [ebp + 0xb], cl
and eax, edx
cmp eax, edx
jne 0x4f313a
xor eax, eax
mov byte [ebp - 1], 1
jmp 0x4f313f
xor eax, eax
mov byte [ebp - 1], al
test cl, cl
je 0x4f315b
test ebx, 0x10000000
je 0x4f315b
or byte [edi + 0x20], 0x80
test ebx, 0x1000
je 0x4f315b
or byte [edi + 0x24], 4
cmp dword [ebp - 8], 7
jb 0x4f32e6
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 0x4f3189
or byte [edi + 0x23], 0x20
mov esi, 0x100
test esi, eax
je 0x4f3196
or byte [edi + 0x23], 0x40
xor ebx, ebx
inc ebx
test eax, 0x80000
je 0x4f31a3
or byte [edi + 0x24], bl
test eax, 0x40000
je 0x4f31ae
or byte [edi + 0x25], 4
test eax, 0x20000000
je 0x4f31b9
or byte [edi + 0x24], 0x20
mov ecx, dword [ebp - 0x10]
test esi, ecx
je 0x4f31c4
or byte [edi + 0x24], 0x40
mov edx, dword [ebp - 0xc]
test edx, 0x8000
je 0x4f31d3
or byte [edi + 0x2a], 2
cmp byte [ebp + 0xb], 0
je 0x4f32a8
test al, 0x20
je 0x4f31e4
or byte [edi + 0x21], bl
test ecx, 0x200
je 0x4f31f0
or byte [edi + 0x24], 0x80
test ecx, 0x400
je 0x4f31fb
or byte [edi + 0x25], bl
cmp byte [ebp - 1], 0
je 0x4f32a8
test eax, 0x10000
je 0x4f3210
or byte [edi + 0x21], 4
test eax, 0x20000
je 0x4f321b
or byte [edi + 0x21], 8
test eax, 0x200000
je 0x4f3226
or byte [edi + 0x21], 0x10
test eax, 0x4000000
je 0x4f3231
or byte [edi + 0x21], 0x20
test eax, 0x8000000
je 0x4f323c
or byte [edi + 0x21], 0x40
test eax, 0x10000000
je 0x4f3247
or byte [edi + 0x21], 0x80
test eax, 0x40000000
je 0x4f3251
or byte [edi + 0x22], bl
test eax, eax
jns 0x4f3259
or byte [edi + 0x22], 2
test cl, 2
je 0x4f3262
or byte [edi + 0x22], 4
test cl, 0x40
je 0x4f326b
or byte [edi + 0x22], 8
test ecx, 0x800
je 0x4f3277
or byte [edi + 0x22], 0x10
test ecx, 0x1000
je 0x4f3283
or byte [edi + 0x22], 0x20
test ecx, 0x4000
je 0x4f328f
or byte [edi + 0x22], 0x40
test dl, 4
je 0x4f3298
or byte [edi + 0x22], 0x80
test dl, 8
je 0x4f32a0
or byte [edi + 0x23], bl
test esi, edx
je 0x4f32a8
or byte [edi + 0x23], 2
cmp dword [ebp - 0x18], ebx
jb 0x4f32e6
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 0x4f32e6
test byte [ebp - 0x18], 0x10
je 0x4f32d6
or byte [edi + 0x21], 2
cmp byte [ebp - 1], 0
je 0x4f32e6
test byte [ebp - 0x18], 0x20
je 0x4f32e6
or byte [edi + 0x23], 4
push 0x16
pop eax
cmp dword [ebp - 8], eax
jb 0x4f3314
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 0x4f3370
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 0x4f3359
or byte [edi + 0x25], 0x10
test byte [ebp - 0x10], 0x20
je 0x4f3363
or byte [edi + 0x23], 0x80
test dword [ebp - 0x10], 0x100
je 0x4f3370
or byte [edi + 0x25], 0x20
mov esi, getsockopt
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jb 0x4f33e4
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.004f3866
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.004f3866
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.004f3866
add esp, 0x48
mov byte [edi + 0x9b], bl
test byte [edi + 0x2a], 1
je 0x4f3417
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.004f3866
add esp, 0x18
mov byte [edi + 0xb7], bl
pop edi
pop esi
pop ebx
leave
ret