Function at 0x408f7a
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 0x408fb6
push eax
push 2
push 7
push esi
call fcn.004496d5
lea eax, [ebp - 0x1c]
push eax
push 8
push 2
push esi
call fcn.0044970e
mov edi, eax
test edi, edi
jl 0x4091a8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4091a8
shl eax, 4
push eax
call fcn.0042a046
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x408ff3
mov edi, 0xc0000017
jmp 0x4091a8
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
push ecx
push 0
push eax
call fcn.00450c60
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.00449582
mov edi, eax
test edi, edi
jl 0x40918e
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.00449605
mov edi, eax
test edi, edi
jl 0x4091a8
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x22]
mov edx, 0xff
cmp ax, dx
jbe 0x40915f
mov edx, 0x7fff
cmp ax, dx
ja 0x40915f
test eax, 0x200
je 0x409099
push ecx
lea edi, [ebp - 8]
call fcn.004093af
test eax, eax
jge 0x409088
or dword [ebx + 0x40], 0x80
or dword [esi], 0x20000000
jmp 0x409099
or dword [ebx + 0x40], 0x200
or dword [0x495dcc], 0x20000
mov edx, dword [ebp - 4]
mov eax, 0x100
mov ecx, eax
test word [edx + 0x22], cx
je 0x4090b2
or dword [ebx + 0x40], eax
or dword [esi], 0x40000000
mov eax, dword [ebp - 4]
mov ecx, 0x400
test word [eax + 0x22], cx
je 0x4090ed
test dword [esi], 0x20000000
jne 0x4090cc
or dword [ebx + 0x40], 0x20
lea ecx, [ebp + 0xb]
push ecx
push eax
call fcn.00448096
test eax, eax
jl 0x4090e7
cmp byte [ebp + 0xb], 0
je 0x4090e7
or dword [ebx + 0x40], 0x4000
or dword [esi], 0x8000000
mov ecx, dword [ebp - 4]
mov eax, 0x800
test word [ecx + 0x22], ax
je 0x409105
or dword [ebx + 0x40], 0x40
or dword [esi], 0x10000000
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x22]
test eax, 0x3000
je 0x409119
or dword [esi], 0x4000000
test dword [esi], 0x38000000
je 0x40913b
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.0044806d
mov edi, eax
test edi, edi
jge 0x40913b
cmp edi, 0xc0000225
jne 0x4091a8
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 0x409171
push dword [ebp - 4]
call fcn.0044b187
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.00449582
mov edi, eax
test edi, edi
jge 0x409029
cmp edi, 0xc0000225
jne 0x409198
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 0x4091b6
push dword [ebp - 4]
call fcn.0044b187
cmp dword [ebp - 8], 0
je 0x4091c4
push dword [ebp - 8]
call fcn.0044b187
cmp dword [ebp - 0xc], 0
je 0x4091d2
push dword [ebp - 0xc]
call fcn.0044b187
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004091e6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4