Function at 0x40a218
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 0xc0]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 0xc]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x14]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
call fcn.00409ca4
loop 0x40a255
int3
push es
jb 0x40a1c5
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 0x88], esi
mov eax, dword [esi + 0x80]
cmp eax, ebx
jne 0x40a23f
push 0x8000
push ebx
push edi
jmp 0x40a4b8
mov edi, eax
cmp edi, ebx
je 0x40a4af
add edi, dword [ebp + 0xc]
call fcn.00409ca4
bound ecx, qword [edx + 0x23]
invalid
cmp dword [edi + 4], ebx
jne 0x40a263
cmp dword [edi + 0xc], ebx
je 0x40a30d
mov esi, dword [edi + 0xc]
add esi, dword [ebp + 0xc]
push esi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a289
push esi
call dword [ebp - 0xc8]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40a4af
call fcn.00409ca4
jae 0x40a30d
fmul qword [eax - 0x74efb875]
dec ebp
or al, 0x8d
xor al, 8
mov eax, dword [edi]
cmp eax, ebx
jne 0x40a2a6
mov dword [ebp + 0x10], esi
jmp 0x40a2ab
add eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x40a2ff
jmp 0x40a2b9
add ecx, eax
test eax, 0x80000000
je 0x40a2ca
and eax, 0xffff
push eax
jmp 0x40a2ce
add ecx, 2
push ecx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00409c69
mov esi, dword [ebp - 0x88]
add edi, 0x14
jmp 0x40a255
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x40a363
add eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x40a363
lea edi, [eax + 8]
mov ecx, dword [eax + 4]
add ecx, eax
cmp edi, ecx
jae 0x40a35e
movzx ecx, word [edi]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40a352
mov edx, dword [ebp + 0xc]
and ecx, 0xfff
add ecx, dword [ebp + 0xc]
sub edx, dword [esi + 0x34]
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40a35a
cmp edx, ebx
jne 0x40a4af
inc edi
inc edi
jmp 0x40a321
add eax, dword [eax + 4]
jmp 0x40a31a
mov dword [ebp - 8], ebx
jmp 0x40a36e
mov esi, dword [ebp - 0x88]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jne 0x40a387
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov esi, 0x60000000
jmp 0x40a3af
call fcn.00409ca4
mov esi, 0xfb5b704
mov bh, 0x45
clc
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*8 + 0x104]
mov edx, dword [esi + eax*8 + 0x108]
lea eax, [esi + eax*8 + 0xf8]
mov esi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp + 8], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp + 8]
ja 0x40a405
mov edx, esi
mov edi, esi
and edx, 0x20000000
and edi, 0x40000000
and esi, 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40a3ee
or byte [eax + ecx], 1
cmp edi, ebx
je 0x40a3f6
or byte [eax + ecx], 2
cmp esi, ebx
je 0x40a3ff
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp + 8]
jbe 0x40a3e3
inc dword [ebp - 8]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp - 8]
cmp cx, word [eax + 6]
jbe 0x40a368
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40a452
dec eax
je 0x40a449
sub eax, 3
je 0x40a440
mov dword [ebp - 4], 0x40
jmp 0x40a455
mov dword [ebp - 4], 4
jmp 0x40a455
mov dword [ebp - 4], 0x20
jmp 0x40a455
mov dword [ebp - 4], ecx
call fcn.00409ca4
inc ecx
fmul dword [eax - 0xd]
cmp dword [ebp - 4], 0x40
je 0x40a47c
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esi
call dword [ebp - 0xc4]
test eax, eax
je 0x40a4af
add esi, dword [ebp - 0xac]
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40a421
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 0x28]
add esi, dword [ebp + 0xc]
call fcn.00409ca4
invalid