Function at 0x40dab0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x4f2a70]
mov dword [ebp - 0x20], 0
movsx eax, word [edx]
lea edx, [eax + eax*4]
lea edx, [eax + edx*4]
lea esi, [ecx + edx*4]
mov edx, dword [0x4f1660]
lea eax, [eax + eax*8]
lea edi, [edx + eax*4]
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004629d0
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + 6]
cmp ecx, 0x17
ja 0x40db30
mov eax, 1
shl eax, cl
test eax, 0xfa0000
jne 0x40db60
lea esi, [esi]
lea edi, [edi]
mov esi, dword [ebp - 0x1c]
test esi, esi
setg al
cmp dword [ebp - 0x20], 1
setg dl
or eax, edx
test al, 1
jne 0x40dd80
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add esp, 0x2c
pop ebx
add eax, ecx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x18]
test ebx, 0x800000
jne 0x40dda4
test ebx, 0x1000000
je 0x40dbb0
test byte [esi + 0x2c], 0x40
je 0x40dbb0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40db8d
or dword [edi + 0x1c], 0x40
mov ebx, dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov eax, 0x1000000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea esi, [esi]
test ebx, 0x2000000
je 0x40dbf0
test byte [esi + 0x2c], 0x20
je 0x40dbf0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40dbce
or dword [edi + 0x1c], 0x20
mov ebx, dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov ecx, 0x2000000
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea esi, [esi]
test ebx, 0x4000000
je 0x40dc30
test byte [esi + 0x2c], 0x10
je 0x40dc30
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40dc0e
or dword [edi + 0x1c], 0x10
mov ebx, dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov edx, 0x4000000
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea esi, [esi]
test ebx, 0x200000
je 0x40dc70
test byte [esi + 0x2c], 1
je 0x40dc70
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40dc4e
or dword [edi + 0x1c], 1
mov ebx, dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov eax, 0x200000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea esi, [esi]
test ebx, 0x400000
je 0x40dcb0
test byte [esi + 0x2c], 2
je 0x40dcb0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40dc8e
or dword [edi + 0x1c], 2
mov ebx, dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov eax, 0x400000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea esi, [esi]
test ebx, 0x8000000
je 0x40dcf0
test byte [esi + 0x2c], 8
je 0x40dcf0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40dcce
or dword [edi + 0x1c], 8
mov ebx, dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov eax, 0x8000000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
lea esi, [esi]
test ebx, 0x40000000
je 0x40dd10
test byte [esi + 0x2e], 2
je 0x40de22
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
jne 0x40de9d
nop
test ebx, 0x20000000
je 0x40dd30
test byte [esi + 0x2e], 4
je 0x40de47
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
jne 0x40de8e
nop
test ebx, 0x10000000
je 0x40dd50
test byte [esi + 0x2e], 8
je 0x40dde3
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
jne 0x40de7f
nop
test ebx, ebx
jns 0x40db30
test byte [esi + 0x2e], 0x10
je 0x40deac
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40db30
or dword [edi + 0x1c], 0x100000
jmp 0x40db30
mov ebx, 0xffffffec
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004905f0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add esp, 0x2c
pop ebx
add eax, ecx
pop esi
pop edi
pop ebp
ret
cmp byte [esi + 0x2c], 0
jns 0x40db6f
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x24], 0
je 0x40ddbe
or dword [edi + 0x1c], 0x80
mov dword [ebp - 0x1c], 1
mov eax, 0x800000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x40db6f
inc dword [ebp - 0x20]
mov eax, 0x10000000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
and eax, 0x8000
test ax, ax
je 0x40dd50
inc dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
or dword [edi + 0x1c], 0x8000
jmp 0x40dd50
mov dword [ebp - 0x20], 1
mov eax, 0x40000000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x40dd10
inc dword [ebp - 0x20]
mov eax, 0x20000000
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
test byte [esi + 0x2d], 0x40
je 0x40dd30
inc dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
or dword [edi + 0x1c], 0x4000
jmp 0x40dd30
or dword [edi + 0x1c], 0x80000
mov ebx, dword [ebp - 0x18]
jmp 0x40dd50
or dword [edi + 0x1c], 0x40000
mov ebx, dword [ebp - 0x18]
jmp 0x40dd30
or dword [edi + 0x1c], 0x20000
mov ebx, dword [ebp - 0x18]
jmp 0x40dd10
inc dword [ebp - 0x20]
mov edi, 0x80000000
mov dword [esp + 4], edi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.0040da70
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x40db30