Function at 0x40ba20
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 0x40ba78
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov edi, ebx
and edi, 0xff000000
test edx, edx
je 0x40ba7f
push 1
push 0x68
call dword [sym.imp.mozglue.dll_calloc]
mov edx, dword [ebp + 8]
add esp, 8
mov esi, eax
mov dword [eax + 0x58], edx
mov eax, dword [edx + 0x78]
test eax, eax
je 0x40ba83
mov ecx, eax
mov eax, dword [eax + 0x60]
test eax, eax
jne 0x40ba61
inc dword [edx + 0x7c]
inc dword [edx + 0x80]
mov dword [ecx + 0x60], esi
jmp 0x40ba92
xor eax, eax
jmp case.default.0x40c0b3
xor esi, esi
jmp 0x40ba92
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 0x40baed
cmp edi, 0x2ffffff
jle 0x40bb47
cmp edi, 0x5ffffff
jle 0x40bbb8
cmp edi, 0x7ffffff
jg 0x40bc74
cmp edi, 0x6000000
je 0x40bcd0
cmp edi, 0x7000000
je 0x40bc8c
jmp 0x40bdec
cmp edi, 0xfffffff
jle 0x40bb83
cmp edi, 0x3fffffff
jle 0x40bbe8
cmp edi, 0x5fffffff
jg 0x40bc98
cmp edi, 0x40000000
je 0x40bce7
cmp edi, 0x50000000
jne 0x40bdec
xor ecx, ecx
cmp byte [edx + 0x29], 4
mov edx, 0x1c
mov eax, 0xe
cmove eax, edx
sete cl
or ecx, 0x14
jmp 0x40bde7
cmp edi, 0xfeffffff
jg 0x40bc18
cmp edi, 0x80000000
je 0x40bcf0
cmp edi, 0x90000000
je 0x40bd04
cmp edi, 0xa0000000
jne 0x40bdec
mov dword [esi + 4], 0xb
jmp 0x40bdc4
cmp edi, 0xcffffff
jg 0x40bc48
cmp edi, 0xa000000
je 0x40bd10
cmp edi, 0xb000000
je 0x40bd2c
cmp edi, 0xc000000
je 0x40bcc4
jmp 0x40bdec
cmp edi, 0x3000000
je 0x40bd38
cmp edi, 0x4000000
je 0x40bcc4
cmp edi, 0x5000000
jne 0x40bdec
mov dword [esi + 4], 5
jmp 0x40bdc4
cmp edi, 0x10000000
je 0x40bd53
cmp edi, 0x20000000
je 0x40bd5c
cmp edi, 0x30000000
jne 0x40bdec
mov dword [esi + 4], 8
jmp 0x40bcf7
cmp edi, 0xff000000
je 0x40bd70
cmp edi, 0x1000000
je 0x40bd81
cmp edi, 0x2000000
jne 0x40bdec
mov dword [esi + 4], 1
jmp 0x40bd49
cmp edi, 0xd000000
je 0x40bd96
cmp edi, 0xe000000
je 0x40bdb4
cmp edi, 0xf000000
jne 0x40bdec
lea eax, [edx + 0x29]
jmp 0x40bdef
cmp edi, 0x8000000
je 0x40bdbd
cmp edi, 0x9000000
jne 0x40bdec
mov dword [esi + 4], 4
jmp 0x40bd63
cmp edi, 0x60000000
je 0x40bdce
cmp edi, 0x70000000
jne 0x40bdec
mov dword [esi + 4], 0x18
xor ecx, ecx
inc ecx
mov eax, 0x200
jmp 0x40be14
mov dword [esi + 4], 3
jmp 0x40bdaa
xor ecx, ecx
cmp byte [edx + 0x29], 4
sete cl
lea eax, [ecx + ecx]
add eax, 4
or ecx, 0xe
jmp 0x40bde7
mov dword [esi + 4], 9
jmp 0x40bcf7
mov dword [esi + 4], 0x19
xor ecx, ecx
inc ecx
mov eax, 0xa
jmp 0x40be14
mov dword [esi + 4], 0xd
jmp 0x40bdc4
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 0x40be14
mov dword [esi + 4], 0xc
jmp 0x40bdc4
cmp byte [edx + 0x2a], 4
mov dword [esi + 4], 1
je 0x40be05
xor eax, eax
inc eax
mov ecx, eax
jmp 0x40be14
mov dword [esi + 4], 6
jmp 0x40bdaa
mov dword [esi + 4], 7
xor ecx, ecx
inc ecx
mov eax, 8
jmp 0x40be14
mov dword [esi + 4], 0xff
xor ecx, ecx
inc ecx
xor eax, eax
jmp 0x40be14
xor ecx, ecx
cmp byte [edx + 0x2a], 4
sete cl
lea eax, [ecx*4 + 4]
xor ecx, 0x13
jmp 0x40bde7
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 0x40be05
xor ecx, ecx
inc ecx
mov eax, 4
jmp 0x40be14
mov dword [esi + 4], 2
jmp 0x40be05
mov dword [esi + 4], 0xa
xor ecx, ecx
inc ecx
mov eax, 0x10
jmp 0x40be14
xor ecx, ecx
cmp byte [edx + 0x29], 4
mov edx, 0x6c
mov eax, 0x5e
cmove eax, edx
sete cl
or ecx, 0x16
mov dword [esi + 4], ecx
jmp 0x40be11
lea eax, [edx + 0x2a]
movzx eax, byte [eax]
xor ecx, ecx
cmp eax, 4
sete cl
or ecx, 2
mov dword [esi + 4], ecx
cmp eax, 2
jne 0x40be11
mov ecx, 9
mov eax, 2
jmp 0x40be14
xor ecx, ecx
inc ecx
cmp eax, 1
mov esi, 0x11
cmovne esi, ecx
mov edi, dword [ebp + 0x14]
shr ebx, 0x10
dec bl
cmp bl, 0x17
ja case.default.0x40be39
mov cl, byte [ebp + 0x18]
mov edx, dword [ebp + 0xc]
movzx ebx, bl
jmp dword [ebx*4 + 0x4495e4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push esi
jmp 0x40bf06
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x29
jmp 0x40bff0
shr cl, 3
and cl, 7
movzx eax, cl
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
add esi, eax
jmp 0x40c03d
mov esi, dword [ebp - 0x10]
mov dword [esi + 0xc], 1
cmp eax, 1
jne 0x40c0f9
mov dword [esi], 3
xor eax, eax
inc eax
cmp dword [ebp - 0x18], 0
je 0x40c091
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx]
mov byte [esi + 0x10], cl
jmp 0x40c091
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x19
jmp 0x40bff0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x19
jmp 0x40bf06
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x39
jmp 0x40bff0
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x21
jmp 0x40bff0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
push 0x21
push dword [ebp + 8]
mov esi, dword [ebp - 0x10]
push esi
call fcn.0040b6c0
add esp, 0xc
jmp 0x40c091
mov esi, dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x40c08f
mov esi, dword [ebp - 0x10]
mov dword [esi], 5
cmp dword [ebp - 0x18], 1
ja 0x40c124
xor eax, eax
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x29], 4
sete al
add eax, eax
add eax, 4
jmp 0x40c091
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x31
jmp 0x40bff0
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
lea eax, [esi + 0x10]
push 0x51
jmp 0x40c086
mov esi, dword [ebp - 0x10]
mov dword [esi], 2
cmp eax, dword [ebp - 0x18]
ja 0x40c091
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x40bfa0.3
jmp dword [ecx*4 + 0x449684]
mov esi, dword [ebp - 0x10]
mov dword [esi], 7
mov dword [esi + 0xc], 8
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x29]
cmp eax, dword [ebp - 0x18]
ja 0x40c091
mov ecx, eax
dec cl
cmp cl, 7
ja case.0x40bfa0.3
movzx ecx, cl
jmp dword [ecx*4 + 0x449644]
shr cl, 3
and cl, 7
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
add cl, 0x41
movzx eax, cl
lea ecx, [esi + 0x10]
push eax
push ecx
jmp 0x40c087
mov esi, dword [ebp - 0x10]
mov dword [esi], 6
mov dword [esi + 0xc], 0x44a
lea eax, [esi + 0x30]
push 7
jmp 0x40c086
mov esi, dword [ebp - 0x10]
mov dword [esi], 6
mov dword [esi + 0xc], 0x14a
lea eax, [esi + 0x30]
push 8
jmp 0x40c086
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 1
mov dword [ecx + 0xc], 0x40
add esi, edx
lea eax, [ecx + 0x10]
push esi
mov esi, ecx
jmp 0x40c086
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x41
jmp 0x40c082
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x39
jmp 0x40c082
mov esi, dword [ebp - 0x10]
mov dword [esi], 1
mov dword [esi + 0xc], 0x40
add edx, 0x49
lea eax, [esi + 0x10]
push edx
push eax
call fcn.0040b2a0
add esp, 8
xor eax, eax
test edi, edi
je case.default.0x40c0b3
mov ecx, dword [esi]
and ecx, 0xfffffffe
cmp ecx, 6
jne case.default.0x40c0b3
and edi, 0xf00
add edi, 0xffffff00
shr edi, 8
cmp edi, 5
ja case.default.0x40c0b3
jmp dword [edi*4 + 0x4496a4]
or byte [esi + 0xd], 2
jmp case.default.0x40c0b3
or byte [esi + 0xd], 3
jmp case.default.0x40c0b3
or byte [esi + 0xd], 4
jmp case.default.0x40c0b3
or byte [esi + 0xd], 1
jmp case.default.0x40c0b3
or byte [esi + 0xd], 5
jmp case.default.0x40c0b3
or byte [esi + 0xd], 6
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 0x40c08f
mov dword [esi], 4
cmp eax, dword [ebp - 0x18]
ja 0x40c091
lea ecx, [eax - 1]
cmp ecx, 7
ja case.0x40bfa0.3
jmp dword [ecx*4 + 0x449664]
mov ecx, dword [ebp - 0x14]
movsd xmm0, qword [ecx]
movsd qword [esi + 0x10], xmm0
jmp 0x40c091
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov word [esi + 0x10], ax
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x29], 4
jne 0x40c184
mov eax, 6
cmp dword [ebp - 0x18], 4
jb 0x40c091
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0x14], ecx
jmp 0x40c091
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [esi + 0x10], al
xor eax, eax
inc eax
jmp 0x40c091
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov word [esi + 0x10], ax
mov eax, 2
jmp 0x40c091
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [esi + 0x10], ecx
jmp 0x40c091
mov word [esi + 0x14], ax
mov eax, 4
jmp 0x40c091