Function at 0x40a810
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40a863
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
mov edi, ebx
and edi, 0xff000000
push 1
push 0x68
call dword [sym.imp.mozglue.dll_calloc]
mov edx, esi
add esp, 8
mov esi, eax
mov dword [eax + 0x58], edx
mov eax, dword [edx + 0x78]
test eax, eax
je 0x40a86a
mov ecx, eax
mov eax, dword [eax + 0x60]
test eax, eax
jne 0x40a84c
inc dword [edx + 0x7c]
inc dword [edx + 0x80]
mov dword [ecx + 0x60], esi
jmp 0x40a879
xor eax, eax
jmp 0x40aebf
xor eax, eax
inc eax
mov dword [edx + 0x7c], eax
mov dword [edx + 0x80], eax
mov dword [edx + 0x78], esi
mov eax, ebx
and eax, 7
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
cmp edi, 0x9ffffff
mov dword [ebp - 0x10], esi
jg 0x40a8d4
cmp edi, 0x2ffffff
jle 0x40a932
cmp edi, 0x5ffffff
jle 0x40a9a3
cmp edi, 0x7ffffff
jg 0x40aa5f
cmp edi, 0x6000000
je 0x40aabb
cmp edi, 0x7000000
je 0x40aa77
jmp 0x40abdb
cmp edi, 0xfffffff
jle 0x40a96e
cmp edi, 0x3fffffff
jle 0x40a9d3
cmp edi, 0x5fffffff
jg 0x40aa83
cmp edi, 0x40000000
je 0x40aad2
cmp edi, 0x50000000
jne 0x40abdb
xor ecx, ecx
cmp byte [edx + 0x29], 4
mov edi, edx
mov edx, 0x1c
mov eax, 0xe
cmove eax, edx
mov edx, edi
sete cl
or ecx, 0x14
jmp 0x40abd6
cmp edi, 0xfeffffff
jg 0x40aa03
cmp edi, 0x80000000
je 0x40aadb
cmp edi, 0x90000000
je 0x40aaef
cmp edi, 0xa0000000
jne 0x40abdb
mov dword [esi + 4], 0xb
jmp 0x40abaf
cmp edi, 0xcffffff
jg 0x40aa33
cmp edi, 0xa000000
je 0x40aafb
cmp edi, 0xb000000
je 0x40ab17
cmp edi, 0xc000000
je 0x40aaaf
jmp 0x40abdb
cmp edi, 0x3000000
je 0x40ab23
cmp edi, 0x4000000
je 0x40aaaf
cmp edi, 0x5000000
jne 0x40abdb
mov dword [esi + 4], 5
jmp 0x40abaf
cmp edi, 0x10000000
je 0x40ab3e
cmp edi, 0x20000000
je 0x40ab47
cmp edi, 0x30000000
jne 0x40abdb
mov dword [esi + 4], 8
jmp 0x40aae2
cmp edi, 0xff000000
je 0x40ab5b
cmp edi, 0x1000000
je 0x40ab6c
cmp edi, 0x2000000
jne 0x40abdb
mov dword [esi + 4], 1
jmp 0x40ab34
cmp edi, 0xd000000
je 0x40ab81
cmp edi, 0xe000000
je 0x40ab9f
cmp edi, 0xf000000
jne 0x40abdb
lea eax, [edx + 0x29]
jmp 0x40abde
cmp edi, 0x8000000
je 0x40aba8
cmp edi, 0x9000000
jne 0x40abdb
mov dword [esi + 4], 4
jmp 0x40ab4e
cmp edi, 0x60000000
je 0x40abb9
cmp edi, 0x70000000
jne 0x40abdb
mov dword [esi + 4], 0x18
xor ecx, ecx
inc ecx
mov eax, 0x200
jmp 0x40ac03
mov dword [esi + 4], 3
jmp 0x40ab95
xor ecx, ecx
cmp byte [edx + 0x29], 4
sete cl
lea eax, [ecx + ecx]
add eax, 4
or ecx, 0xe
jmp 0x40abd6
mov dword [esi + 4], 9
jmp 0x40aae2
mov dword [esi + 4], 0x19
xor ecx, ecx
inc ecx
mov eax, 0xa
jmp 0x40ac03
mov dword [esi + 4], 0xd
jmp 0x40abaf
xor eax, eax
cmp byte [edx + 0x29], 4
sete al
xor eax, 0x11
mov dword [esi + 4], eax
xor ecx, ecx
inc ecx
mov eax, 6
jmp 0x40ac03
mov dword [esi + 4], 0xc
jmp 0x40abaf
cmp byte [edx + 0x2a], 4
mov dword [esi + 4], 1
je 0x40abf1
xor eax, eax
inc eax
mov ecx, eax
jmp 0x40ac03
mov dword [esi + 4], 6
jmp 0x40ab95
mov dword [esi + 4], 7
xor ecx, ecx
inc ecx
mov eax, 8
jmp 0x40ac03
mov dword [esi + 4], 0xff
xor ecx, ecx
inc ecx
xor eax, eax
jmp 0x40ac03
xor ecx, ecx
cmp byte [edx + 0x2a], 4
sete cl
lea eax, [ecx*4 + 4]
xor ecx, 0x13
jmp 0x40abd6
mov al, byte [edx + 0x2a]
xor ecx, ecx
cmp al, 4
sete cl
or ecx, 2
mov dword [esi + 4], ecx
cmp al, 4
jne 0x40abf1
xor ecx, ecx
inc ecx
mov eax, 4
jmp 0x40ac03
mov dword [esi + 4], 2
jmp 0x40abf1
mov dword [esi + 4], 0xa
xor ecx, ecx
inc ecx
mov eax, 0x10
jmp 0x40ac03
xor ecx, ecx
cmp byte [edx + 0x29], 4
mov edi, edx
mov edx, 0x6c
mov eax, 0x5e
cmove eax, edx
mov edx, edi
sete cl
or ecx, 0x16
mov dword [esi + 4], ecx
jmp 0x40ac00
lea eax, [edx + 0x2a]
mov al, byte [eax]
xor ecx, ecx
cmp al, 4
sete cl
or ecx, 2
mov dword [esi + 4], ecx
cmp al, 2
jne 0x40abfd
mov ecx, 9
mov eax, 2
jmp 0x40ac03
movzx eax, al
xor ecx, ecx
inc ecx
mov edi, dword [ebp + 0x14]
cmp eax, 1
mov esi, 0x11
cmovne esi, ecx
shr ebx, 0x10
movzx ebx, bl
dec ebx
cmp ebx, 0x17
ja case.default.0x40ac29
mov edi, edx
mov cl, byte [ebp + 0x18]
mov edx, dword [ebp + 0xc]
jmp dword [ebx*4 + 0x44a62c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push esi
jmp 0x40acf9
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x29
jmp 0x40ade3
shr cl, 3
and cl, 7
movzx eax, cl
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
add esi, eax
jmp 0x40ae36
mov esi, dword [ebp - 0x10]
mov dword [esi + 0xc], 1
cmp eax, 1
jne 0x40aedc
mov dword [esi], 3
xor eax, eax
inc eax
cmp dword [ebp - 0x18], 0
mov edi, dword [ebp + 0x14]
je 0x40ae91
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx]
mov byte [esi + 0x10], cl
jmp 0x40ae91
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x19
jmp 0x40ade3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x19
jmp 0x40acf9
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x39
jmp 0x40ade3
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x21
jmp 0x40ade3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x21
push edi
mov esi, dword [ebp - 0x10]
push esi
call fcn.0040a490
add esp, 0xc
jmp 0x40ae8e
mov esi, dword [ebp - 0x10]
mov dword [esi], 0
xor eax, eax
jmp 0x40ae91
mov esi, dword [ebp - 0x10]
mov dword [esi], 5
mov edx, dword [ebp - 0x18]
cmp edx, 1
ja 0x40af07
xor eax, eax
cmp byte [edi + 0x29], 4
sete al
add eax, eax
add eax, 4
jmp 0x40ae8e
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x31
jmp 0x40ade3
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
mov eax, esi
add eax, 0x10
push 0x51
jmp 0x40ae83
mov esi, dword [ebp - 0x10]
mov dword [esi], 2
cmp eax, dword [ebp - 0x18]
ja 0x40ae8e
lea ecx, [eax - 1]
cmp ecx, 7
mov edi, dword [ebp + 0x14]
ja case.0x40ad97.3
jmp dword [ecx*4 + 0x44a6cc]
mov esi, dword [ebp - 0x10]
mov dword [esi], 7
mov dword [esi + 0xc], 8
movzx eax, byte [edi + 0x29]
cmp eax, dword [ebp - 0x18]
ja 0x40ae8e
lea ecx, [eax - 1]
cmp ecx, 7
mov edi, dword [ebp + 0x14]
ja case.0x40ad97.3
jmp dword [ecx*4 + 0x44a68c]
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x41
movzx eax, cl
mov ecx, esi
add ecx, 0x10
push eax
push ecx
jmp 0x40ae84
mov esi, dword [ebp - 0x10]
mov dword [esi], 6
mov dword [esi + 0xc], 0x44a
mov eax, esi
add eax, 0x30
push 7
jmp 0x40ae83
mov esi, dword [ebp - 0x10]
mov dword [esi], 6
mov dword [esi + 0xc], 0x14a
mov eax, esi
add eax, 0x30
push 8
jmp 0x40ae83
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
mov dword [ecx + 0xc], 0x40
add esi, edx
mov eax, ecx
add eax, 0x10
push esi
mov esi, ecx
jmp 0x40ae83
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x41
jmp 0x40ae7d
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x39
jmp 0x40ae7d
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x49
mov eax, esi
add eax, 0x10
push edx
push eax
call fcn.0040a040
add esp, 8
xor eax, eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40aebf
mov ecx, dword [esi]
and ecx, 0xfffffffe
cmp ecx, 6
jne 0x40aebf
and edi, 0xf00
add edi, 0xffffff00
cmp edi, 0x5ff
ja 0x40aebf
shr edi, 6
mov ecx, dword [edi + 0x44a5cc]
or dword [esi + 0xc], ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov dword [esi], 2
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], 0x40
jmp 0x40ae8c
mov dword [esi], 4
cmp eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x14]
ja 0x40ae91
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x40ad97.3
jmp dword [ecx*4 + 0x44a6ac]
mov ecx, dword [ebp - 0x14]
movsd xmm0, qword [ecx]
movsd qword [esi + 0x10], xmm0
jmp 0x40ae91
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx]
mov word [esi + 0x10], ax
cmp byte [edi + 0x29], 4
jne 0x40af63
mov eax, 6
cmp edx, 4
mov edi, dword [ebp + 0x14]
jb 0x40ae91
mov ecx, dword [ecx]
mov dword [esi + 0x14], ecx
jmp 0x40ae91
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [esi + 0x10], al
xor eax, eax
inc eax
jmp 0x40ae91
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov word [esi + 0x10], ax
mov eax, 2
jmp 0x40ae91
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0x10], ecx
jmp 0x40ae91
mov word [esi + 0x14], ax
mov eax, 4
jmp 0x40ae8e