Function at 0x40f51e
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebx]
add esi, 0x40
lea eax, [ebx + 0x14]
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp + 0xb], cl
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
cmp dword [eax], ecx
jne 0x40f55a
push eax
push 2
push 7
push esi
call fcn.00446a3f
lea eax, [ebp - 0x1c]
push eax
push 8
push 2
push esi
call fcn.00446a78
mov edi, eax
test edi, edi
jl 0x40f74c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f74c
shl eax, 4
push eax
call fcn.0042a848
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40f597
mov edi, 0xc0000017
jmp 0x40f74c
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
push ecx
push 0
push eax
call fcn.0044db40
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 8
push 2
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call fcn.004468ec
mov edi, eax
test edi, edi
jl 0x40f732
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.0044696f
mov edi, eax
test edi, edi
jl 0x40f74c
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x22]
mov edx, 0xff
cmp ax, dx
jbe 0x40f703
mov edx, 0x7fff
cmp ax, dx
ja 0x40f703
test eax, 0x200
je 0x40f63d
push ecx
lea edi, [ebp - 8]
call fcn.0040f974
test eax, eax
jge 0x40f62c
or dword [ebx + 0x40], 0x80
or dword [esi], 0x20000000
jmp 0x40f63d
or dword [ebx + 0x40], 0x200
or dword [0x494a8c], 0x20000
mov edx, dword [ebp - 4]
mov eax, 0x100
mov ecx, eax
test word [edx + 0x22], cx
je 0x40f656
or dword [ebx + 0x40], eax
or dword [esi], 0x40000000
mov eax, dword [ebp - 4]
mov ecx, 0x400
test word [eax + 0x22], cx
je 0x40f691
test dword [esi], 0x20000000
jne 0x40f670
or dword [ebx + 0x40], 0x20
lea ecx, [ebp + 0xb]
push ecx
push eax
call fcn.00445400
test eax, eax
jl 0x40f68b
cmp byte [ebp + 0xb], 0
je 0x40f68b
or dword [ebx + 0x40], 0x4000
or dword [esi], 0x8000000
mov ecx, dword [ebp - 4]
mov eax, 0x800
test word [ecx + 0x22], ax
je 0x40f6a9
or dword [ebx + 0x40], 0x40
or dword [esi], 0x10000000
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x22]
test eax, 0x3000
je 0x40f6bd
or dword [esi], 0x4000000
test dword [esi], 0x38000000
je 0x40f6df
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.004453d7
mov edi, eax
test edi, edi
jge 0x40f6df
cmp edi, 0xc0000225
jne 0x40f74c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
and dword [ebp - 4], 0
mov dword [esi + 8], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
and dword [ebp - 8], 0
inc dword [ebp - 0x10]
add esi, 0x10
cmp dword [ebp - 4], 0
je 0x40f715
push dword [ebp - 4]
call fcn.00448273
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 8
push 2
push dword [ebp - 0x20]
call fcn.004468ec
mov edi, eax
test edi, edi
jge 0x40f5cd
cmp edi, 0xc0000225
jne 0x40f73c
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
mov dword [ebx + 0x48], eax
cmp dword [ebp - 4], 0
je 0x40f75a
push dword [ebp - 4]
call fcn.00448273
cmp dword [ebp - 8], 0
je 0x40f768
push dword [ebp - 8]
call fcn.00448273
cmp dword [ebp - 0xc], 0
je 0x40f776
push dword [ebp - 0xc]
call fcn.00448273
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040f78a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4