Function at 0x4a5d10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
test ecx, ecx
je 0x4a5fdc
mov eax, ecx
mov edi, ecx
sar eax, 0x1f
xor edi, edx
mov ebx, eax
sar edi, 0x1f
xor ebx, ecx
mov dword [ebp - 8], edi
sub ebx, eax
mov eax, edx
sar eax, 0x1f
mov ecx, ebx
mov esi, eax
xor esi, edx
sub esi, eax
call fcn.004a5cb0
dec eax
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.004a5cb0
mov edx, dword [ebp - 4]
lea ecx, [eax - 1]
mov eax, ecx
sub eax, edx
add eax, 0x10
js 0x4a5fdc
cmp eax, 0x1f
jle 0x4a5d7b
mov eax, edi
xor eax, 0x7fffffff
sub eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl esi, cl
mov ecx, edx
shl ebx, cl
mov edx, ebx
sub edx, esi
mov edi, edx
not edx
cmovs edi, ebx
shr edx, 0x1f
test eax, eax
jle 0x4a5fc3
mov ecx, eax
shl edx, cl
lea ecx, [eax - 2]
mov eax, edi
cmp ecx, 0x1d
ja case.default.0x4a5da9
jmp dword [ecx*4 + 0x4a5fe8]
add edi, edi
mov eax, edi
sub eax, esi
js 0x4a5dc0
or edx, 0x40000000
jmp case.0x4a5da9.30
mov eax, edi
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5dd2
or edx, 0x20000000
jmp case.0x4a5da9.29
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5de4
or edx, 0x10000000
jmp case.0x4a5da9.28
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5df6
or edx, 0x8000000
jmp case.0x4a5da9.27
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e08
or edx, 0x4000000
jmp case.0x4a5da9.26
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e1a
or edx, 0x2000000
jmp case.0x4a5da9.25
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e2c
or edx, 0x1000000
jmp case.0x4a5da9.24
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e3e
or edx, 0x800000
jmp case.0x4a5da9.23
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e50
or edx, 0x400000
jmp case.0x4a5da9.22
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e62
or edx, 0x200000
jmp case.0x4a5da9.21
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e74
or edx, 0x100000
jmp case.0x4a5da9.20
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e86
or edx, 0x80000
jmp case.0x4a5da9.19
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5e98
or edx, 0x40000
jmp case.0x4a5da9.18
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5eaa
or edx, 0x20000
jmp case.0x4a5da9.17
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5ebc
or edx, 0x10000
jmp case.0x4a5da9.16
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5ece
or edx, 0x8000
jmp case.0x4a5da9.15
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5ee0
or edx, 0x4000
jmp case.0x4a5da9.14
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5ef2
or edx, 0x2000
jmp case.0x4a5da9.13
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f04
or edx, 0x1000
jmp case.0x4a5da9.12
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f16
or edx, 0x800
jmp case.0x4a5da9.11
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f28
or edx, 0x400
jmp case.0x4a5da9.10
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f3a
or edx, 0x200
jmp case.0x4a5da9.9
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f4c
or edx, 0x100
jmp case.0x4a5da9.8
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f5e
or edx, 0x80
jmp case.0x4a5da9.7
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f6d
or edx, 0x40
jmp case.0x4a5da9.6
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f7c
or edx, 0x20
jmp case.0x4a5da9.5
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f8b
or edx, 0x10
jmp case.0x4a5da9.4
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5f9a
or edx, 8
jmp case.0x4a5da9.3
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5fa9
or edx, 4
jmp case.0x4a5da9.2
mov eax, ecx
add eax, eax
mov ecx, eax
sub eax, esi
js 0x4a5fb8
or edx, 2
jmp case.default.0x4a5da9
mov eax, ecx
add eax, eax
sub eax, esi
js 0x4a5fc3
or edx, 1
test edx, edx
mov eax, SysReAllocString
pop edi
cmovs edx, eax
xor edx, dword [ebp - 8]
sub edx, dword [ebp - 8]
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret