Function at 0x40df78
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00451ce0
mov dword [ebp - 8], eax
call fcn.00451cea
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x40
test ecx, ecx
jne 0x40dfae
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
and eax, 2
test eax, eax
je 0x40dfb6
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 1
test eax, eax
jne 0x40dfce
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xa]
cmp edx, 8
jge 0x40dff0
mov eax, dword [0x4c30dc]
sub eax, dword [ebp - 4]
mov dword [0x4c30dc], eax
cmp dword [0x4c30dc], 0
jge 0x40dfee
mov dword [0x4c30dc], 0
jmp 0x40e03a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 2
test edx, edx
jne 0x40e00d
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0xc]
sub edx, 8
cmp ecx, edx
jl 0x40e03a
mov eax, dword [0x4c30dc]
add eax, dword [ebp - 4]
mov dword [0x4c30dc], eax
mov ecx, dword [0x4c30dc]
add ecx, dword [ebp - 0xc]
cmp ecx, dword [0x4c2e84]
jle 0x40e03a
mov edx, dword [0x4c2e84]
sub edx, dword [ebp - 0xc]
mov dword [0x4c30dc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 4
test ecx, ecx
jne 0x40e052
mov edx, dword [ebp + 8]
movsx eax, word [edx + 8]
cmp eax, 8
jge 0x40e076
mov ecx, dword [0x4c30d8]
sub ecx, dword [ebp - 4]
mov dword [0x4c30d8], ecx
cmp dword [0x4c30d8], 0
jge 0x40e074
mov dword [0x4c30d8], 0
jmp 0x40e0c0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 8
test eax, eax
jne 0x40e093
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
mov eax, dword [ebp - 8]
sub eax, 8
cmp edx, eax
jl 0x40e0c0
mov ecx, dword [0x4c30d8]
add ecx, dword [ebp - 4]
mov dword [0x4c30d8], ecx
mov edx, dword [0x4c30d8]
add edx, dword [ebp - 8]
cmp edx, dword [0x4c3288]
jle 0x40e0c0
mov eax, dword [0x4c3288]
sub eax, dword [ebp - 8]
mov dword [0x4c30d8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x100000
test edx, edx
jne 0x40e0e3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 0x10000
test ecx, ecx
je 0x40e1d7
mov edx, dword [ebp + 8]
movsx eax, word [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xa]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040d930
add esp, 8
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040dd76
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40e194
push str.dd
call fcn.0041c889
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
cmp edx, 0x1d2
jge 0x40e148
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 8]
mov dword [ebp - 0x1c], ecx
jmp 0x40e14f
mov dword [ebp - 0x1c], 0x1d2
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 0xfe
jge 0x40e170
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
mov dword [ebp - 0x20], eax
jmp 0x40e177
mov dword [ebp - 0x20], 0xfe
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.dd
call fcn.0041bed5
add esp, 0xc
jmp 0x40e1d7
cmp dword [ebp - 0x10], 1
jne 0x40e1ab
call fcn.0040592f
mov dword [0x4c30d0], eax
call fcn.0040e60e
jmp 0x40e1d7
cmp dword [ebp - 0x10], 2
jne 0x40e1c2
mov dword [0x4c30d0], 0
call fcn.004183ee
jmp 0x40e1d7
cmp dword [ebp - 0x10], 3
jne 0x40e1d7
call fcn.0040592f
mov dword [0x4c30d0], eax
call fcn.004183ee
mov ecx, dword [0x4a79c8]
and ecx, 0x80
test ecx, ecx
je 0x40e27b
mov edx, dword [0x4a6764]
and edx, 0x8000000
test edx, edx
je 0x40e20a
mov eax, dword [0x487310]
xor eax, 1
mov dword [0x487310], eax
jmp 0x40e27b
mov ecx, dword [0x4a6764]
and ecx, 0x10000000
test ecx, ecx
je 0x40e226
mov dword [0x4c30e0], 0xa
jmp 0x40e27b
mov edx, dword [0x4a6764]
and edx, 0x20000000
test edx, edx
je 0x40e23d
call fcn.0040ddc2
jmp 0x40e27b
mov eax, dword [0x4a6764]
and eax, 0x40000000
test eax, eax
je 0x40e252
call fcn.0040ddfe
jmp 0x40e27b
mov ecx, dword [0x4a6764]
and ecx, 0x80000000
test ecx, ecx
je 0x40e269
call fcn.0040de34
jmp 0x40e27b
mov edx, dword [0x4a6768]
and edx, 1
test edx, edx
je 0x40e27b
call fcn.0040deda
mov eax, dword [0x4a79c8]
and eax, 1
test eax, eax
je 0x40e2c5
mov ecx, dword [0x4a6768]
and ecx, 0x1000000
test ecx, ecx
je 0x40e2a8
mov edx, dword [0x4a79c8]
or edx, 0x40
mov dword [0x4a79c8], edx
jmp 0x40e2c5
mov eax, dword [0x4a6768]
and eax, 0x800000
test eax, eax
je 0x40e2c5
mov ecx, dword [0x4a79c8]
or ch, 8
mov dword [0x4a79c8], ecx
mov esp, ebp
pop ebp
ret