Function at 0x40df68
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00451f28
mov dword [ebp - 8], eax
call fcn.00451f32
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 0x40df9e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
and eax, 2
test eax, eax
je 0x40dfa6
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 0x40dfbe
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0xa]
cmp edx, 8
jge 0x40dfe0
mov eax, dword [0x4c30fc]
sub eax, dword [ebp - 4]
mov dword [0x4c30fc], eax
cmp dword [0x4c30fc], 0
jge 0x40dfde
mov dword [0x4c30fc], 0
jmp 0x40e02a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 2
test edx, edx
jne 0x40dffd
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa]
mov edx, dword [ebp - 0xc]
sub edx, 8
cmp ecx, edx
jl 0x40e02a
mov eax, dword [0x4c30fc]
add eax, dword [ebp - 4]
mov dword [0x4c30fc], eax
mov ecx, dword [0x4c30fc]
add ecx, dword [ebp - 0xc]
cmp ecx, dword [0x4c2ea4]
jle 0x40e02a
mov edx, dword [0x4c2ea4]
sub edx, dword [ebp - 0xc]
mov dword [0x4c30fc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 4
test ecx, ecx
jne 0x40e042
mov edx, dword [ebp + 8]
movsx eax, word [edx + 8]
cmp eax, 8
jge 0x40e066
mov ecx, dword [0x4c30f8]
sub ecx, dword [ebp - 4]
mov dword [0x4c30f8], ecx
cmp dword [0x4c30f8], 0
jge 0x40e064
mov dword [0x4c30f8], 0
jmp 0x40e0b0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 8
test eax, eax
jne 0x40e083
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
mov eax, dword [ebp - 8]
sub eax, 8
cmp edx, eax
jl 0x40e0b0
mov ecx, dword [0x4c30f8]
add ecx, dword [ebp - 4]
mov dword [0x4c30f8], ecx
mov edx, dword [0x4c30f8]
add edx, dword [ebp - 8]
cmp edx, dword [0x4c32a8]
jle 0x40e0b0
mov eax, dword [0x4c32a8]
sub eax, dword [ebp - 8]
mov dword [0x4c30f8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
and edx, 0x100000
test edx, edx
jne 0x40e0d3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 0x10000
test ecx, ecx
je 0x40e1c7
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.0040d920
add esp, 8
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040dd66
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40e184
push str.dd
call fcn.0041c999
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 8]
cmp edx, 0x1d2
jge 0x40e138
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 8]
mov dword [ebp - 0x1c], ecx
jmp 0x40e13f
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 0x40e160
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
mov dword [ebp - 0x20], eax
jmp 0x40e167
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.0041bfe5
add esp, 0xc
jmp 0x40e1c7
cmp dword [ebp - 0x10], 1
jne 0x40e19b
call fcn.0040592f
mov dword [0x4c30f0], eax
call fcn.0040e5fe
jmp 0x40e1c7
cmp dword [ebp - 0x10], 2
jne 0x40e1b2
mov dword [0x4c30f0], 0
call fcn.004183d2
jmp 0x40e1c7
cmp dword [ebp - 0x10], 3
jne 0x40e1c7
call fcn.0040592f
mov dword [0x4c30f0], eax
call fcn.004183d2
mov ecx, dword [0x4a7c10]
and ecx, 0x80
test ecx, ecx
je 0x40e26b
mov edx, dword [0x4a67d4]
and edx, 0x8000000
test edx, edx
je 0x40e1fa
mov eax, dword [0x487320]
xor eax, 1
mov dword [0x487320], eax
jmp 0x40e26b
mov ecx, dword [0x4a67d4]
and ecx, 0x10000000
test ecx, ecx
je 0x40e216
mov dword [0x4c3100], 0xa
jmp 0x40e26b
mov edx, dword [0x4a67d4]
and edx, 0x20000000
test edx, edx
je 0x40e22d
call fcn.0040ddb2
jmp 0x40e26b
mov eax, dword [0x4a67d4]
and eax, 0x40000000
test eax, eax
je 0x40e242
call fcn.0040ddee
jmp 0x40e26b
mov ecx, dword [0x4a67d4]
and ecx, 0x80000000
test ecx, ecx
je 0x40e259
call fcn.0040de24
jmp 0x40e26b
mov edx, dword [0x4a67d8]
and edx, 1
test edx, edx
je 0x40e26b
call fcn.0040deca
mov eax, dword [0x4a7c10]
and eax, 1
test eax, eax
je 0x40e2b5
mov ecx, dword [0x4a67d8]
and ecx, 0x1000000
test ecx, ecx
je 0x40e298
mov edx, dword [0x4a7c10]
or edx, 0x40
mov dword [0x4a7c10], edx
jmp 0x40e2b5
mov eax, dword [0x4a67d8]
and eax, 0x800000
test eax, eax
je 0x40e2b5
mov ecx, dword [0x4a7c10]
or ch, 8
mov dword [0x4a7c10], ecx
mov esp, ebp
pop ebp
ret