Function at 0x40a820
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 0x40a873
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 0x40a87a
mov ecx, eax
mov eax, dword [eax + 0x60]
test eax, eax
jne 0x40a85c
inc dword [edx + 0x7c]
inc dword [edx + 0x80]
mov dword [ecx + 0x60], esi
jmp 0x40a889
xor eax, eax
jmp 0x40aecf
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 0x40a8e4
cmp edi, 0x2ffffff
jle 0x40a942
cmp edi, 0x5ffffff
jle 0x40a9b3
cmp edi, 0x7ffffff
jg 0x40aa6f
cmp edi, 0x6000000
je 0x40aacb
cmp edi, 0x7000000
je 0x40aa87
jmp 0x40abeb
cmp edi, 0xfffffff
jle 0x40a97e
cmp edi, 0x3fffffff
jle 0x40a9e3
cmp edi, 0x5fffffff
jg 0x40aa93
cmp edi, 0x40000000
je 0x40aae2
cmp edi, 0x50000000
jne 0x40abeb
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 0x40abe6
cmp edi, 0xfeffffff
jg 0x40aa13
cmp edi, 0x80000000
je 0x40aaeb
cmp edi, 0x90000000
je 0x40aaff
cmp edi, 0xa0000000
jne 0x40abeb
mov dword [esi + 4], 0xb
jmp 0x40abbf
cmp edi, 0xcffffff
jg 0x40aa43
cmp edi, 0xa000000
je 0x40ab0b
cmp edi, 0xb000000
je 0x40ab27
cmp edi, 0xc000000
je 0x40aabf
jmp 0x40abeb
cmp edi, 0x3000000
je 0x40ab33
cmp edi, 0x4000000
je 0x40aabf
cmp edi, 0x5000000
jne 0x40abeb
mov dword [esi + 4], 5
jmp 0x40abbf
cmp edi, 0x10000000
je 0x40ab4e
cmp edi, 0x20000000
je 0x40ab57
cmp edi, 0x30000000
jne 0x40abeb
mov dword [esi + 4], 8
jmp 0x40aaf2
cmp edi, 0xff000000
je 0x40ab6b
cmp edi, 0x1000000
je 0x40ab7c
cmp edi, 0x2000000
jne 0x40abeb
mov dword [esi + 4], 1
jmp 0x40ab44
cmp edi, 0xd000000
je 0x40ab91
cmp edi, 0xe000000
je 0x40abaf
cmp edi, 0xf000000
jne 0x40abeb
lea eax, [edx + 0x29]
jmp 0x40abee
cmp edi, 0x8000000
je 0x40abb8
cmp edi, 0x9000000
jne 0x40abeb
mov dword [esi + 4], 4
jmp 0x40ab5e
cmp edi, 0x60000000
je 0x40abc9
cmp edi, 0x70000000
jne 0x40abeb
mov dword [esi + 4], 0x18
xor ecx, ecx
inc ecx
mov eax, 0x200
jmp 0x40ac13
mov dword [esi + 4], 3
jmp 0x40aba5
xor ecx, ecx
cmp byte [edx + 0x29], 4
sete cl
lea eax, [ecx + ecx]
add eax, 4
or ecx, 0xe
jmp 0x40abe6
mov dword [esi + 4], 9
jmp 0x40aaf2
mov dword [esi + 4], 0x19
xor ecx, ecx
inc ecx
mov eax, 0xa
jmp 0x40ac13
mov dword [esi + 4], 0xd
jmp 0x40abbf
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 0x40ac13
mov dword [esi + 4], 0xc
jmp 0x40abbf
cmp byte [edx + 0x2a], 4
mov dword [esi + 4], 1
je 0x40ac01
xor eax, eax
inc eax
mov ecx, eax
jmp 0x40ac13
mov dword [esi + 4], 6
jmp 0x40aba5
mov dword [esi + 4], 7
xor ecx, ecx
inc ecx
mov eax, 8
jmp 0x40ac13
mov dword [esi + 4], 0xff
xor ecx, ecx
inc ecx
xor eax, eax
jmp 0x40ac13
xor ecx, ecx
cmp byte [edx + 0x2a], 4
sete cl
lea eax, [ecx*4 + 4]
xor ecx, 0x13
jmp 0x40abe6
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 0x40ac01
xor ecx, ecx
inc ecx
mov eax, 4
jmp 0x40ac13
mov dword [esi + 4], 2
jmp 0x40ac01
mov dword [esi + 4], 0xa
xor ecx, ecx
inc ecx
mov eax, 0x10
jmp 0x40ac13
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 0x40ac10
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 0x40ac0d
mov ecx, 9
mov eax, 2
jmp 0x40ac13
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.0x40ac39
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 0x40ad09
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x29
jmp 0x40adf3
shr cl, 3
and cl, 7
movzx eax, cl
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
add esi, eax
jmp 0x40ae46
mov esi, dword [ebp - 0x10]
mov dword [esi + 0xc], 1
cmp eax, 1
jne 0x40aeec
mov dword [esi], 3
xor eax, eax
inc eax
cmp dword [ebp - 0x18], 0
mov edi, dword [ebp + 0x14]
je 0x40aea1
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx]
mov byte [esi + 0x10], cl
jmp 0x40aea1
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x19
jmp 0x40adf3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x19
jmp 0x40ad09
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x39
jmp 0x40adf3
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x21
jmp 0x40adf3
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x21
push edi
mov esi, dword [ebp - 0x10]
push esi
call fcn.0040a4a0
add esp, 0xc
jmp 0x40ae9e
mov esi, dword [ebp - 0x10]
mov dword [esi], 0
xor eax, eax
jmp 0x40aea1
mov esi, dword [ebp - 0x10]
mov dword [esi], 5
mov edx, dword [ebp - 0x18]
cmp edx, 1
ja 0x40af17
xor eax, eax
cmp byte [edi + 0x29], 4
sete al
add eax, eax
add eax, 4
jmp 0x40ae9e
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x31
jmp 0x40adf3
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
mov eax, esi
add eax, 0x10
push 0x51
jmp 0x40ae93
mov esi, dword [ebp - 0x10]
mov dword [esi], 2
cmp eax, dword [ebp - 0x18]
ja 0x40ae9e
lea ecx, [eax - 1]
cmp ecx, 7
mov edi, dword [ebp + 0x14]
ja case.0x40ada7.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 0x40ae9e
lea ecx, [eax - 1]
cmp ecx, 7
mov edi, dword [ebp + 0x14]
ja case.0x40ada7.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 0x40ae94
mov esi, dword [ebp - 0x10]
mov dword [esi], 6
mov dword [esi + 0xc], 0x44a
mov eax, esi
add eax, 0x30
push 7
jmp 0x40ae93
mov esi, dword [ebp - 0x10]
mov dword [esi], 6
mov dword [esi + 0xc], 0x14a
mov eax, esi
add eax, 0x30
push 8
jmp 0x40ae93
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 0x40ae93
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x41
jmp 0x40ae8d
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x39
jmp 0x40ae8d
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.0040a050
add esp, 8
xor eax, eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40aecf
mov ecx, dword [esi]
and ecx, 0xfffffffe
cmp ecx, 6
jne 0x40aecf
and edi, 0xf00
add edi, 0xffffff00
cmp edi, 0x5ff
ja 0x40aecf
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 0x40ae9c
mov dword [esi], 4
cmp eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x14]
ja 0x40aea1
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x40ada7.3
jmp dword [ecx*4 + 0x44a6ac]
mov ecx, dword [ebp - 0x14]
movsd xmm0, qword [ecx]
movsd qword [esi + 0x10], xmm0
jmp 0x40aea1
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx]
mov word [esi + 0x10], ax
cmp byte [edi + 0x29], 4
jne 0x40af73
mov eax, 6
cmp edx, 4
mov edi, dword [ebp + 0x14]
jb 0x40aea1
mov ecx, dword [ecx]
mov dword [esi + 0x14], ecx
jmp 0x40aea1
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [esi + 0x10], al
xor eax, eax
inc eax
jmp 0x40aea1
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov word [esi + 0x10], ax
mov eax, 2
jmp 0x40aea1
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0x10], ecx
jmp 0x40aea1
mov word [esi + 0x14], ax
mov eax, 4
jmp 0x40ae9e